Skip to content

Commit e11d94c

Browse files
authored
Merge pull request #221 from pre-commit/asottile-patch-1
More strict regex for name-tests-test
2 parents a6b1e98 + 3effa55 commit e11d94c

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)