mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 19:26:52 +00:00
Handling default django test filename of "tests.py"
This commit is contained in:
parent
c847dd3f2e
commit
c380d0b3e3
2 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ def validate_files(argv=None):
|
|||
args = parser.parse_args(argv)
|
||||
|
||||
retcode = 0
|
||||
test_name_pattern = 'test_.*.py' if args.django else '.*_test.py'
|
||||
test_name_pattern = 'test.*.py' if args.django else '.*_test.py'
|
||||
for filename in args.filenames:
|
||||
base = basename(filename)
|
||||
if (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue