What's Changed
Breaking Changes
- Remove emoji identifier support by @MichaReiser in #7212
- Location agnostic GitLab fingerprints by @gregersn in #7203
Rules
- [
ruff
]RUF001
: Remove autofix for ambiguous unicode rule by @charliermarsh in #7168
Settings
Bug Fixes
- [
flake8-bugbear
]B006
: Add newline if fix is at end-of-file by @charliermarsh in #7090B006
: Fix function docstring followed by whitespace but no newline by @zanieb in #7160B009
: Parenthesize expressions when converting to attribute access by @charliermarsh in #7091B009
,B010
: Fixgetattr
calls onint
literals by @density in #7057B013
: Supported starred exceptions in length-one tuple detection by @charliermarsh in #7080B013
: Insert required space when fixing by @charliermarsh in #7148
- [
flake8-comprehensions
]C402
: Add required space when fixing by @charliermarsh in #7152C404
Add required space when fixing by @charliermarsh in #7185C416
Add required space to fix by @charliermarsh in #7204C417
: Support length-2 lists in dictionary comprehension rewrites by @charliermarsh in #7081C417
: Parenthesize targets if necessary by @charliermarsh in #7189
- [
flake8-return
]RET504
: Add space after return when inlining number by @charliermarsh in #7116
- [
flake8-simplify
]SIM105
: Avoid attempting to fix violations with multi-statement lines by @charliermarsh in #7191SIM105
Avoid inserting an extra newline for fixes by @charliermarsh in #7221SIM118
: Add required space when fixing by @charliermarsh in #7150SIM118
: delete.keys()
rather than replace expression by @charliermarsh in #7223SIM210
: Retain parentheses when fixing by @charliermarsh in #7118SIM222
: Add parentheses when simplifying conditions by @charliermarsh in #7117SIM300
: Add required space when fixing by @charliermarsh in #7167
- [
flake8-pytest-style
]PT018
: Split withinnot
, rather than outside ofnot
by @charliermarsh in #7151
- [
flynt
]FLY002
: Add required space for fixes by @charliermarsh in #7222
- [
numpy
]NPY001
: Avoid attempting to fix with overridden builtins by @charliermarsh in #7187NPY003
: Use symbol import for replacement by @charliermarsh in #7083
- [
pandas-vet
]PD002
: Handle parenthesized calls by @charliermarsh in #7111
- [
pep8-naming
]N806
: Avoid triggering onTypeAlias
assignments by @charliermarsh in #7119
- [
pydocstyle
] - [
pyflakes
]F401
: Avoid panic with noqa import name by @charliermarsh in #7260F841
: Expand fixes to handle parenthesized targets by @charliermarsh in #7110
- [
pylint
]PLW3301
: Copy the starred argument as is for autofix by @dhruvmanila in #7177
- [
pyupgrade
]UP006
andUP007
: Add required space to fixes by @charliermarsh in #7202UP007
: Avoid attempting to fix invalidOptional
annotations by @charliermarsh in #7079UP007
: Fix syntax error in autofix by @charliermarsh in #7137UP021
: Avoid adding duplicatetext
keyword tosubprocess.run
by @charliermarsh in #7112UP022
: Avoid adding duplicatecapture_output
keyword tosubprocess.run
by @charliermarsh in #7113UP028
: Support parenthesized expressions by @charliermarsh in #7114UP022
: Avoid fixing whencapture_output
is provided by @charliermarsh in #7149UP024
: Add required space when fixing by @charliermarsh in #7171
- [
ruff
]RUF017
: Avoid duplicate fixes for multi-import imports by @charliermarsh in #7063
- Fix named expression precedence in generator by @charliermarsh in #7170
- Fix precedence of annotated assignments in generator by @charliermarsh in #7115
- Update identifier Unicode character validation to match Python spec by @LaBatata101 in #7209
Other Changes
- Added argfile test and documentation by @njgrisafi in #7138
New Contributors
- @oliviacrain made their first contribution in #7093
- @dalgarno made their first contribution in #7108
- @manmartgarc made their first contribution in #7179
- @jaap3 made their first contribution in #7194
- @gregersn made their first contribution in #7203
- @eronnen made their first contribution in #7251
Full Changelog: v0.0.287...v0.0.288