default
125cb6f78c
Remove unused Sequence imports after argv type change
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 07:51:22 +00:00
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
f27ee318d2
don't rewrite string quotes inside f-strings
2023-10-07 13:50:33 -04: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
Anthony Sottile
fea76b9ea1
Fix CI by upgrading AP templates
2020-02-03 08:41:48 -08:00
Anthony Sottile
711b730b67
Fix crlf line endings for double-quote-string-fixer
2019-05-16 09:42:04 -07:00
Anthony Sottile
030bfac7e4
Apply typing to all of pre-commit-hooks
2019-01-31 20:09:15 -08:00
Anthony Sottile
5dc306b35d
Fix resource warnings
2018-06-18 00:00:38 -07:00
Michał Sochoń
54c0f8c937
Open files as UTF-8
2018-03-26 12:00:48 +02:00
Anthony Sottile
9cee71b5df
Add pyupgrade
2017-03-12 18:01:29 -07:00
Anthony Sottile
2983d4478f
Use the tokenizer for great success
2015-02-10 08:17:35 -08:00
Anthony Sottile
9326fad9c8
Simplify string-fixer
2015-02-09 09:45:58 -08:00
Ken Struys
12f02dfeb8
implemented a basic double quote string fixer
2015-02-08 21:05:12 -08:00