Skip to content

Commit 1553c96

Browse files
authored
Merge pull request #227 from pre-commit/better_tests_regex
Use a better regex for name-tests-test
2 parents 0861462 + c5b56b6 commit 1553c96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
description: This verifies that test files are named correctly
197197
entry: name-tests-test
198198
language: python
199-
files: ^tests/.+\.py$
199+
files: (^|/)tests/.+\.py$
200200
- id: no-commit-to-branch
201201
name: "Don't commit to branch"
202202
entry: no-commit-to-branch

0 commit comments

Comments
 (0)