Skip to content

Commit d75d74b

Browse files
committed
add new path
1 parent 0b07bd6 commit d75d74b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pre_commit_hooks/tests_should_end_in_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def main(argv: Sequence[str] | None = None) -> int:
1414
'--pytest',
1515
dest='pattern',
1616
action='store_const',
17-
const=r'.tests_*\.py',
18-
default=r'.tests_*\.py',
17+
const=r'tests_*\.py',
18+
default=r'tests_*\.py',
1919
help='(the default) ensure tests match %(const)s',
2020
)
2121
mutex.add_argument(
@@ -41,7 +41,8 @@ def main(argv: Sequence[str] | None = None) -> int:
4141
if (
4242
not reg.fullmatch(base) and
4343
not base == '__init__.py' and
44-
not base == 'conftest.py'
44+
not base == 'conftest.py' and
45+
not base == 'models.py'
4546
):
4647
retcode = 1
4748
print(f'{filename} does not match pattern "{args.pattern}"')

0 commit comments

Comments
 (0)