diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 232d8a6d1..d19d93fb6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: hooks: - id: no-commit-to-branch name: Check for numpy imports - entry: grep -R "import numpy" . + entry: git grep -l "import numpy" language: system types: [python] exclude: |