add new regex

This commit is contained in:
Uros 2024-10-17 16:29:14 +02:00
parent 0e93be09a8
commit 8215312c10

View file

@ -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)