Skip to content

Commit 612a4b1

Browse files
authored
fix regular expression for test files
1 parent 8a36145 commit 612a4b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_commit_hooks/tests_should_end_in_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
1818
args = parser.parse_args(argv)
1919

2020
retcode = 0
21-
test_name_pattern = 'test.*.py' if args.django else '.*_test.py'
21+
test_name_pattern = r'test.*\.py' if args.django else r'.*_test\.py'
2222
for filename in args.filenames:
2323
base = os.path.basename(filename)
2424
if (

0 commit comments

Comments
 (0)