From f4edadfcc37f37d7b03e1ae1cd36526a8816bedc Mon Sep 17 00:00:00 2001 From: Jarkko Jaakola Date: Wed, 22 Feb 2023 10:24:32 +0200 Subject: [PATCH] chore: remove untracked files from copyright header check --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6d117bb17..3c7c9ee9a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: pass_filenames: false # Lists the Python files that do not have an Aiven copyright. Exits with a # non-zero exit code if any are found. - entry: bash -c "! git grep --untracked -ELm1 'Copyright \(c\) 20[0-9]{2} Aiven' -- '*.py' ':!*__init__.py'" + entry: bash -c "! git grep -ELm1 'Copyright \(c\) 20[0-9]{2} Aiven' -- '*.py' ':!*__init__.py'" - repo: https://github.com/shellcheck-py/shellcheck-py rev: v0.9.0.2