What's Changed
Rules
- [
pyupgrade
]: Remove outdatedsys.version_info
blocks by @colin99d in #2099 - [
flake8-self
] Add Plugin and RuleSLF001
by @saadmk11 in #2470 - [
pylint
] Implement pylint'stoo-many-statements
rule (PLR0915
) by @chanman3388 in #2445
Settings
- [
isort
] Support forced_separate by @akx in #2268 - [
isort
] Add isort option lines-after-imports by @reidswan in #2440 - Allow non-ruff.toml-named files for --config by @charliermarsh in #2463
Bug Fixes
- Trigger, but don't fix, SIM rules if comments are present by @charliermarsh in #2450
- Only avoid PEP604 rewrites for pre-Python 3.10 code by @charliermarsh in #2449
- Use LibCST to reverse Yoda conditions by @charliermarsh in #2468
- fix: assertTrue()/assertFalse() fixer should not test for identity by @spaceone in #2476
- Treat
if 0:
andif False:
as type-checking blocks by @charliermarsh in #2485 - Avoid iterating over body twice by @charliermarsh in #2439
- more builtin name checks when autofixing by @spaceone in #2430
- Respect parent noqa in --add-noqa by @charliermarsh in #2464
- Avoid removing un-selected codes when applying
--add-noqa
edits by @charliermarsh in #2465 - Carry-over
ignore
to next config layer ifselect = []
by @not-my-profile in #2467 - Visit NamedExpr values before targets by @charliermarsh in #2484
New Contributors
- @reidswan made their first contribution in #2440
- @chanman3388 made their first contribution in #2445
Full Changelog: v0.0.239...v0.0.240