What's Changed
Breaking Changes
- Remove multiple-statements-on-one-line-def (E704) by @charliermarsh in #2773
Rules
- [
flake8-pyi
]: add rules for unrecognized platform check (PYI007, PYI008) by @SigureMo in #2805 - [
flake8-simplify
]: combine-if-conditions by @colin99d in #2823 - [
flake8-django
] Implemented flake8-django plugin rules by @konysko in #2586
CLI
- Implement
config
subcommand by @not-my-profile in #2775 - Add rendering of rule markdown for terminal output by @ngnpope in #2747
- Add
--show-fixes
flag to show applied fixes by @charliermarsh in #2707
Settings
Autofix
- [
pyflakes
] Support unused variable removal in multi-assignment statements by @charliermarsh in #2786 - [
flake8-comprehensions
] autofix C414 and C417 + bugfix by @sbrugman in #2693 - [
flake8-comprehensions
] bugfix for C413 autofix by @sbrugman in #2804 - [
flake8-simplify
] Use smarter inversion for comparison checks by @charliermarsh in #2831 - [
flake8-comprehensions
] improve autofix for C401, C402 and C417 by @sbrugman in #2806
Bug Fixes
- Ignore colon-after-lambda in compound statement rules by @charliermarsh in #2771
- Don't treat all future import accesses as non-runtime by @charliermarsh in #2774
- Avoid treating deferred string annotations as required-at-runtime by @charliermarsh in #2779
- Respect continuations in
noqa
enforcement by @charliermarsh in #2783 - Improve unused-variable autofixes for with statements by @charliermarsh in #2785
- Refactor generator to use Astor-derived precedence levels by @charliermarsh in #2798
- Allow private accesses on super calls by @charliermarsh in #2815
- Allow non-verbose raise when cause is present by @charliermarsh in #2816
- Avoid duplicates in if-with-same-arms by @charliermarsh in #2827
- Include package inference during --add-noqa command by @charliermarsh in #2832
- Allow compound statements of single ellipsis by @charliermarsh in #2837
New Contributors
- @trag1c made their first contribution in #2757
- @PushUpek made their first contribution in #2762
- @konysko made their first contribution in #2586
- @SigureMo made their first contribution in #2805
Full Changelog: v0.0.245...v0.0.246