diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 4301317..69e316a 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -196,7 +196,7 @@ description: This verifies that test files are named correctly entry: name-tests-test language: python - files: ^tests/.+\.py$ + files: (^|/)tests/.+\.py$ - id: no-commit-to-branch name: "Don't commit to branch" entry: no-commit-to-branch