default
e514e01ee5
Use Iterable[str] instead of Sequence[str] for argv parameters
...
argparse.ArgumentParser.parse_args() accepts any Iterable[str], not
just Sequence[str]. The latest typeshed reflects this with the signature
`def parse_args(args: Iterable[str] | None = ...) -> Namespace`.
Update all main(argv:) parameters from `Sequence[str] | None` to
`Iterable[str] | None` and adjust imports accordingly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 07:45:29 +00:00
Anthony Sottile
a49f812a96
py39+
...
Committed via https://github.com/asottile/all-repos
2024-10-11 19:30:07 -04:00
Anthony Sottile
412564fa95
add --pytest-test-first convention
2022-06-07 09:10:42 -07:00
Anthony Sottile
8f6152921e
drop python3.6 support
...
python 3.6 reached end of life on 2021-12-23
Committed via https://github.com/asottile/all-repos
2022-01-15 19:24:05 -05:00
Anthony Sottile
39ab2ed85e
replace exit(main()) with raise SystemExit(main())
...
Committed via https://github.com/asottile/all-repos
2021-10-23 13:23:50 -04:00
Anthony Sottile
f5c42a050b
pre-commit-hooks: python3.6+
2020-02-05 11:22:18 -08:00
Rich Rauenzahn
612a4b18cf
fix regular expression for test files
2019-12-04 11:45:21 -08:00
Anthony Sottile
030bfac7e4
Apply typing to all of pre-commit-hooks
2019-01-31 20:09:15 -08:00
Anthony Sottile
2a902e0a07
Use asottile/add-trailing-comma
2017-07-12 18:58:30 -07:00
Oliver Zhou
c380d0b3e3
Handling default django test filename of "tests.py"
2017-03-15 00:40:53 -07:00
Anthony Sottile
9cee71b5df
Add pyupgrade
2017-03-12 18:01:29 -07:00
phoxelua
58edfc8af6
Fixed regex matching
2015-11-19 00:39:29 -08:00
Guy Kisel
db4b8f02f3
Add --django flag to test name checker
2015-03-11 17:44:59 -07:00
Anthony Sottile
63f01e99ac
Fix name-tests-test
2015-01-04 15:03:56 -08:00
Anthony Sottile
2f1d2bbe5b
Remove @entry decorator (and misc cleanup)
2015-01-04 11:08:53 -08:00
Anthony Sottile
00d5904b80
Fix pylint.
2014-06-01 16:08:31 -07:00
Anthony Sottile
b80ca9e84a
Update project setup.
2014-04-13 22:09:26 -07:00
Anthony Sottile
45741545dc
Refactored how entry points work.
2014-03-22 18:21:54 -07:00
Anthony Sottile
12794c1c19
Add some tests for tests_should_end_in_test hook
2014-03-18 21:25:36 -07:00
Anthony Sottile
ab35cd3634
Add name-tests-test hook
2014-03-14 15:42:24 -07:00