mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-10 13:24:18 +00:00
add new regex
This commit is contained in:
parent
0e93be09a8
commit
8215312c10
1 changed files with 2 additions and 2 deletions
|
|
@ -14,8 +14,8 @@ def main(argv: Sequence[str] | None = None) -> int:
|
||||||
'--pytest',
|
'--pytest',
|
||||||
dest='pattern',
|
dest='pattern',
|
||||||
action='store_const',
|
action='store_const',
|
||||||
const=r'tests/.*/tests_*\.py',
|
const=r'^tests\/(?:[a-zA-Z0-9_]+\/)*tests[a-zA-Z0-9_]*\.py$',
|
||||||
default=r'tests/.*/tests_*\.py',
|
default=r'^tests\/(?:[a-zA-Z0-9_]+\/)*tests[a-zA-Z0-9_]*\.py$',
|
||||||
help='(the default) ensure tests match %(const)s',
|
help='(the default) ensure tests match %(const)s',
|
||||||
)
|
)
|
||||||
args = parser.parse_args(argv)
|
args = parser.parse_args(argv)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue