What's Changed
Breaking Changes
- Remove deprecated
update-check
setting by @charliermarsh in #4313 - JSON Emitter: Use one indexed column numbers for edits by @MichaReiser in #4007
Rules
- [
pygrep-hooks
] Implement pygrep-hook's Mock-mistake diagnostic by @charliermarsh in #4366 - [
pylint
] Implementnested-min-max
(W3301
) by @mccullocht in #4200 - [
flynt
] Implement Flynt static string join transform as FLY002 by @akx in #4196 - [
pylint
] Include positional- and keyword-only arguments in too-many-arguments by @charliermarsh in #4329 - [
ruff
] Update confusable character mapping by @akx in #4274
Settings
- Add .git-rewrite folder to default ignored folder paths by @jleclanche in #4261
- Feat: detect changes also in configuration files by @mikeleppane in #4169
Bug Fixes
- Revert the B027 autofix logic by @aacunningham in #4310
- Consider Flask app logger as logger candidate by @dhruvmanila in #4253
- Enforce max-doc-length for multi-line docstrings by @charliermarsh in #4347
- Avoid re-using imports beyond current edit site by @charliermarsh in #4378
- Respect insertion location when importing symbols by @charliermarsh in #4258
- Fix jemalloc page size on aarch64 by @MichaReiser in #4247
- Fix replace_whitespace() tabulation to space by @JonathanPlasse in #4226
- Avoid fixing
PD002
in a lambda expression by @dhruvmanila in #4286 - Avoid
D403
if first char cannot be uppercased by @dhruvmanila in #4283 - Avoid panics for f-string rewrites at start-of-file by @charliermarsh in #4291
- Rewrite
not not a
asbool(a)
in boolean contexts by @charliermarsh in #4294 - Include static and class methods in in abstract decorator list by @charliermarsh in #4298
- Specify exact command in incorrect parentheses suggestion by @charliermarsh in #4300
- Ignore
TRY301
exceptions without except handlers by @charliermarsh in #4301 - Preserve whitespace around
ListComp
brackets inC419
by @dhruvmanila in #4099 - Tweak capitalization of B021 message by @charliermarsh in #4350
- Avoid debug panic with empty indent replacement by @charliermarsh in #4364
- Use target name in hardcoded-password diagnostics by @charliermarsh in #4365
- Avoid underflow in expected-special-method-signature by @charliermarsh in #4377
- Respect
__all__
imports when determining definition visibility by @charliermarsh in #4357 - Ignore some methods on list in
flake8-boolean-trap
by @charliermarsh in #4385 - Fix false positives in PD002 by @evanrittenhouse in #4337
- Run autofix on initial watcher pass by @charliermarsh in #4311
- Avoid SIM105 autofixes that would remove comments by @charliermarsh in #4330
- Handle
.encode
calls on parenthesized expressions by @charliermarsh in #4338 - Truncate
SyntaxError
s before newline character by @MichaReiser in #4124 - Use non-empty ranges for logical-lines diagnostics by @MichaReiser in #4133
New Contributors
- @jleclanche made their first contribution in #4261
- @aureliojargas made their first contribution in #4306
- @intgr made their first contribution in #4304
- @mikeleppane made their first contribution in #4169
- @dependabot made their first contribution in #4354
Full Changelog: v0.0.265...v0.0.266