Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Created by
brew bump
Created with
brew bump-formula-pr
.release notes
Rules
ruff
]RUF001
: Remove autofix for ambiguous unicode rule by @charliermarsh in Remove autofix for ambiguous unicode rules astral-sh/ruff#7168Settings
flake8-self
]SLF001
: Addextend-ignore-names
option by @jaap3 in Addextend-ignore-names
forflake8-self
astral-sh/ruff#7194Bug Fixes
flake8-bugbear
]B006
: Add newline if fix is at end-of-file by @charliermarsh in Add newline if B006 fix is at end-of-file astral-sh/ruff#7090B006
: Fix function docstring followed by whitespace but no newline by @zanieb in Fix B006 when function docstring is followed by whitespace but no newline astral-sh/ruff#7160B009
: Parenthesize expressions when converting to attribute access by @charliermarsh in Parenthesize expressins when converting to B009 astral-sh/ruff#7091B009
,B010
: Fixgetattr
calls onint
literals by @density in Fixgetattr
calls on int literals astral-sh/ruff#7057B013
: Supported starred exceptions in length-one tuple detection by @charliermarsh in Supported starred exceptions in length-one tuple detection astral-sh/ruff#7080B013
: Insert required space when fixing by @charliermarsh in Insert required space when fixing B013 astral-sh/ruff#7148flake8-comprehensions
]C402
: Add required space when fixing by @charliermarsh in Add required space when fixing C402 astral-sh/ruff#7152C404
Add required space when fixing by @charliermarsh in Add required space when fixing C404 astral-sh/ruff#7185C416
Add required space to fix by @charliermarsh in Add required space to C416 fix astral-sh/ruff#7204C417
: Support length-2 lists in dictionary comprehension rewrites by @charliermarsh in Support length-2 lists in dictionary comprehension rewrites astral-sh/ruff#7081C417
: Parenthesize targets if necessary by @charliermarsh in Parenthesize C417 targets if necessary astral-sh/ruff#7189flake8-return
]RET504
: Add space after return when inlining number by @charliermarsh in Add space after return when inlining number for RET504 astral-sh/ruff#7116flake8-simplify
]SIM105
: Avoid attempting to fix violations with multi-statement lines by @charliermarsh in Avoid attempting to fix SIM105 violations with multi-statement lines astral-sh/ruff#7191SIM105
Avoid inserting an extra newline for fixes by @charliermarsh in Use full range for SIM105 fixes astral-sh/ruff#7221SIM118
: Add required space when fixing by @charliermarsh in Add required space when fixing SIM118 astral-sh/ruff#7150SIM118
: delete.keys()
rather than replace expression by @charliermarsh in Change SIM118 to delete.keys()
rather than replace expression astral-sh/ruff#7223SIM210
: Retain parentheses when fixing by @charliermarsh in Retain parentheses when fixingSIM210
astral-sh/ruff#7118SIM222
: Add parentheses when simplifying conditions by @charliermarsh in Add parentheses when simplifying conditions in SIM222 astral-sh/ruff#7117SIM300
: Add required space when fixing by @charliermarsh in Add required space when fixing SIM300 astral-sh/ruff#7167flake8-pytest-style
]PT018
: Split withinnot
, rather than outside ofnot
by @charliermarsh in Split withinnot
, rather than outside ofnot
, for PT018 astral-sh/ruff#7151flynt
]FLY002
: Add required space for fixes by @charliermarsh in Add required space for FLY002 fixes astral-sh/ruff#7222numpy
]NPY001
: Avoid attempting to fix with overridden builtins by @charliermarsh in Avoid attempting to fix NPY001 with overridden builtins astral-sh/ruff#7187NPY003
: Use symbol import for replacement by @charliermarsh in Use symbol import for NPY003 replacement astral-sh/ruff#7083pandas-vet
]PD002
: Handle parenthesized calls by @charliermarsh in Handle parenthesized calls in PD002 astral-sh/ruff#7111pep8-naming
]N806
: Avoid triggering onTypeAlias
assignments by @charliermarsh in Avoid triggering N806 onTypeAlias
assignments astral-sh/ruff#7119pydocstyle
]D204
: Fix when there's a semicolon after a docstring by @konstin in Fix D204 when there's a semicolon after a docstring astral-sh/ruff#7174D213
,D400
: Ignore single quote docstrings with newline escape by @konstin in Ignore single quote docstrings with newline escape astral-sh/ruff#7173D417
: Fix error with function docstrings with dashed lines by @eronnen in fix D417 error with function docstrings with dashed lines astral-sh/ruff#7251pyflakes
]F401
: Avoid panic with noqa import name by @charliermarsh in Avoid F401 panic with noqa import name astral-sh/ruff#7260F841
: Expand fixes to handle parenthesized targets by @charliermarsh in Expand F841 fixes to handle parenthesized targets astral-sh/ruff#7110pylint
]PLW3301
: Copy the starred argument as is for autofix by @dhruvmanila in Copy the starred argument as is forPLW3301
autofix astral-sh/ruff#7177pyupgrade
]UP006
andUP007
: Add required space to fixes by @charliermarsh in Add required space to UP006 and UP007 fixes astral-sh/ruff#7202UP007
: Avoid attempting to fix invalidOptional
annotations by @charliermarsh in Avoid attempting to fix invalidOptional
annotations astral-sh/ruff#7079UP007
: Fix syntax error in autofix by @charliermarsh in Use generator for UP007 autofix astral-sh/ruff#7137UP021
: Avoid adding duplicatetext
keyword tosubprocess.run
by @charliermarsh in Avoid adding duplicatetext
keyword tosubprocess.run
astral-sh/ruff#7112UP022
: Avoid adding duplicatecapture_output
keyword tosubprocess.run
by @charliermarsh in Avoid adding duplicatecapture_output
keyword tosubprocess.run
astral-sh/ruff#7113UP028
: Support parenthesized expressions by @charliermarsh in Support parenthesized expressions in UP028 astral-sh/ruff#7114UP022
: Avoid fixing whencapture_output
is provided by @charliermarsh in Avoid fixing UP022 whencapture_output
is provided astral-sh/ruff#7149UP024
: Add required space when fixing by @charliermarsh in Add required space when fixing UP024 astral-sh/ruff#7171ruff
]RUF017
: Avoid duplicate fixes for multi-import imports by @charliermarsh in Avoid duplicate fixes for multi-import imports in RUF017 astral-sh/ruff#7063Other Changes
New Contributors
extend-ignore-names
forflake8-self
astral-sh/ruff#7194Full Changelog: astral-sh/ruff@v0.0.287...v0.0.288