We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b07bd6 commit d75d74bCopy full SHA for d75d74b
pre_commit_hooks/tests_should_end_in_test.py
@@ -14,8 +14,8 @@ def main(argv: Sequence[str] | None = None) -> int:
14
'--pytest',
15
dest='pattern',
16
action='store_const',
17
- const=r'.tests_*\.py',
18
- default=r'.tests_*\.py',
+ const=r'tests_*\.py',
+ default=r'tests_*\.py',
19
help='(the default) ensure tests match %(const)s',
20
)
21
mutex.add_argument(
@@ -41,7 +41,8 @@ def main(argv: Sequence[str] | None = None) -> int:
41
if (
42
not reg.fullmatch(base) and
43
not base == '__init__.py' and
44
- not base == 'conftest.py'
+ not base == 'conftest.py' and
45
+ not base == 'models.py'
46
):
47
retcode = 1
48
print(f'{filename} does not match pattern "{args.pattern}"')
0 commit comments