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
mwip
bc7973eb59
Add bpdb to debug_statements_hook
...
This patch adds the bpython debugger import `bpdb` to the
debug_statements_hook.
2023-08-02 15:47:15 +02:00
Anthony Sottile
b13ff9b868
adjust error outputs to be more standardized
2022-04-06 16:59:53 -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
Can Sarıgöl
41b29e8c8d
Added pdbr into debug statements
2021-06-15 09:28:11 +02:00
Jascha Geerds
53a05b952c
Add "pydevd_pycharm" to list of debug statements
2020-07-01 17:15:46 +02:00
Dawid Kosiński
43bfa05e89
added wdb to DEBUG_STATEMENTS set
2020-02-18 19:10:23 +01:00
Anthony Sottile
f5c42a050b
pre-commit-hooks: python3.6+
2020-02-05 11:22:18 -08:00
Dan LaManna
e34f0c44aa
Add the rpdb debugger to the list of debugger packages
2019-06-05 12:29:23 -04: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
Anthony Sottile
18b3ab7cd2
debug-statements: detect python3.7+ breakpoint()
2018-05-13 15:28:39 -07:00
Anthony Sottile
2913408db3
debug statements hook works for non-utf8 files
2017-08-14 20:20:32 -07:00
Anthony Sottile
2a902e0a07
Use asottile/add-trailing-comma
2017-07-12 18:58:30 -07:00
Anthony Sottile
9cee71b5df
Add pyupgrade
2017-03-12 18:01:29 -07:00
Oscar-Garcia
ea320d7463
Update debug_statement_hook.py
...
Adds celery rdb as debugger: http://docs.celeryproject.org/en/latest/tutorials/debugging.html
2016-06-20 09:41:22 +02:00
Mike Cooper
edee3f64b9
Add q as a debug statement
...
q is a debugging tool: https://pypi.python.org/pypi/q
2015-04-10 10:55:33 -07:00
Anthony Sottile
2f1d2bbe5b
Remove @entry decorator (and misc cleanup)
2015-01-04 11:08:53 -08:00
Anthony Sottile
830ea6d8c8
Give a better message when ast is not parseable.
2014-06-19 17:44:40 -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
acd9eaf6ed
Add trailing whitespace fixer.
2014-03-14 15:18:29 -07:00
Anthony Sottile
10c042c99c
Fix debug statement hook
2014-03-14 14:51:42 -07:00
Anthony Sottile
4fc86a807b
Added debug statement hook.
2014-03-14 14:23:08 -07:00