What's Changed
Rules
- Autofix
EM101
,EM102
,EM103
if possible by @dhruvmanila in #4123 - Add bugbear immutable functions as allowed in dataclasses by @mosauter in #4122
Settings
- Add support for providing command-line arguments via
argfile
by @charliermarsh in #4087
Bug Fixes
- Make D410/D411 autofixes mutually exclusive by @evanrittenhouse in #4110
- Remove
pyright
comment prefix from PYI033 checks by @evanrittenhouse in #4152 - Fix F811 false positive with match by @JonathanPlasse in #4161
- Fix
E713
andE714
false positives for multiple comparisons by @JonathanPlasse in #4083 - Fix B023 shadowed variables in nested functions by @MichaReiser in #4111
- Preserve star-handling special-casing for force-single-line by @charliermarsh in #4129
- Respect parent-scoping rules for
NamedExpr
assignments by @charliermarsh in #4145 - Fix UP032 auto-fix by @JonathanPlasse in #4165
- Allow boolean parameters for
pytest.param
by @charliermarsh in #4176
Internal
- Replace row/column based
Location
with byte-offsets. by @MichaReiser in #3931 - perf(logical-lines): Various small perf improvements by @MichaReiser in #4022
- Use
memchr
to speedup newline search on x86 by @MichaReiser in #3985 - Remove
ScopeStack
in favor of child-parentScopeId
pointers by @charliermarsh in #4138
Full Changelog: v0.0.263...v0.0.264