mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 18:16:52 +00:00
fix regular expression for test files
This commit is contained in:
parent
8a36145fa9
commit
612a4b18cf
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
|
|||
args = parser.parse_args(argv)
|
||||
|
||||
retcode = 0
|
||||
test_name_pattern = 'test.*.py' if args.django else '.*_test.py'
|
||||
test_name_pattern = r'test.*\.py' if args.django else r'.*_test\.py'
|
||||
for filename in args.filenames:
|
||||
base = os.path.basename(filename)
|
||||
if (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue