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.
This PR contains the following updates:
^0.0.237
->^0.0.247
Release Notes
charliermarsh/ruff
v0.0.247
Compare Source
What's Changed
Rules
NPY001
] deprecated type aliases by @sbrugman in https://github.com/charliermarsh/ruff/pull/2810RUF006
] Implementasyncio-dangling-task
to trackasyncio.create_task
calls by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2935CLI
Bug Fixes
flake8-tidy-imports
] autofix relative imports by @sbrugman in https://github.com/charliermarsh/ruff/pull/2891elif
branches by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2881New Contributors
Full Changelog: astral-sh/ruff@v0.0.246...v0.0.247
v0.0.246
Compare Source
What's Changed
Breaking Changes
Rules
flake8-pyi
]: add rules for unrecognized platform check (PYI007, PYI008) by @SigureMo in https://github.com/charliermarsh/ruff/pull/2805flake8-simplify
]: combine-if-conditions by @colin99d in https://github.com/charliermarsh/ruff/pull/2823flake8-django
] Implemented flake8-django plugin rules by @konysko in https://github.com/charliermarsh/ruff/pull/2586CLI
config
subcommand by @not-my-profile in https://github.com/charliermarsh/ruff/pull/2775--show-fixes
flag to show applied fixes by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2707Settings
Autofix
pyflakes
] Support unused variable removal in multi-assignment statements by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2786flake8-comprehensions
] autofix C414 and C417 + bugfix by @sbrugman in https://github.com/charliermarsh/ruff/pull/2693flake8-comprehensions
] bugfix for C413 autofix by @sbrugman in https://github.com/charliermarsh/ruff/pull/2804flake8-simplify
] Use smarter inversion for comparison checks by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2831flake8-comprehensions
] improve autofix for C401, C402 and C417 by @sbrugman in https://github.com/charliermarsh/ruff/pull/2806Bug Fixes
noqa
enforcement by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2783New Contributors
Full Changelog: astral-sh/ruff@v0.0.245...v0.0.246
v0.0.245
Compare Source
What's Changed
Breaking Changes
Rules
flake8-pyi
]Add flake8-pyi with one rule by @sbdchd in https://github.com/charliermarsh/ruff/pull/2682pylint
]: bad-string-format-type by @colin99d in https://github.com/charliermarsh/ruff/pull/2572pylint
]: yield-in-init by @tomecki in https://github.com/charliermarsh/ruff/pull/2716flake8-tidy-imports
] Implement autofix for relative imports (TID252) by @sbrugman in https://github.com/charliermarsh/ruff/pull/2739flake8-bandit
]: try-except-continue by @colin99d in https://github.com/charliermarsh/ruff/pull/2674flake8-bandit
] Implement bandit's 'hardcoded-sql-expressions' S608 by @mattoberle in https://github.com/charliermarsh/ruff/pull/2698pycodestyle
] Implement compound-statements (E701, E702, E703, E704) by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2680Settings
# noqa: E999
directives by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2697Bug Fixes
Path.readlink()
behind Python 3.9+ guard by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2708__all__
members as used at end-of-scope by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2733__all__
bindings for global scope by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2738function_type::classify
foryield-in-init
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2742New Contributors
Full Changelog: astral-sh/ruff@v0.0.244...v0.0.245
v0.0.244
Compare Source
What's Changed
Rules
pylint
]: bidirectional-unicode by @colin99d in https://github.com/charliermarsh/ruff/pull/2589Settings
--exit-non-zero-on-fix
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2668Documentation
explanation
method on Rule struct via rustdoc by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2642Bug Fixes
__setitem__
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2636.py
wrt. implicit namespace package by @scop in https://github.com/charliermarsh/ruff/pull/2640@pytest.mark.parametrize
decorators by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2662New Contributors
Full Changelog: astral-sh/ruff@v0.0.243...v0.0.244
v0.0.243
Compare Source
What's Changed
Rules
Bug Fixes
typing.NamedTuple
andtyping.TypedDict
treatment by @scop in https://github.com/charliermarsh/ruff/pull/2611ignore-names
for all relevant pep8-naming rules by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2617Full Changelog: astral-sh/ruff@v0.0.242...v0.0.243
v0.0.242
Compare Source
What's Changed
Rules
too-many-branches
rule (PLR0912
) by @chanman3388 in https://github.com/charliermarsh/ruff/pull/2550too-many-return-statements
rule (PLR0911
) by @chanman3388 in https://github.com/charliermarsh/ruff/pull/2564pyupgrade
]: Removes quotes from annotations by @colin99d in https://github.com/charliermarsh/ruff/pull/2431pylint
]: bad-str-strip-call by @colin99d in https://github.com/charliermarsh/ruff/pull/2570Bug Fixes
mypy
andSPDX-License-Identifier
false positives by @scop in https://github.com/charliermarsh/ruff/pull/2587New Contributors
Full Changelog: astral-sh/ruff@v0.0.241...v0.0.242
v0.0.241
Compare Source
What's Changed
Deprecates
update-check
by @akx in https://github.com/charliermarsh/ruff/pull/2530Rules
Features
known-standard-library
for each Python version by @JonathanPlasse in https://github.com/charliermarsh/ruff/pull/2491Bug Fixes
flake8-self
] Fix False Negative Issue on RuleSLF001
by @saadmk11 in https://github.com/charliermarsh/ruff/pull/2527--show-files
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2543implicit-namespace-package
by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2560list()
andtuple()
calls in__all__
assignments by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2499New Contributors
Full Changelog: astral-sh/ruff@v0.0.240...v0.0.241
v0.0.240
Compare Source
What's Changed
Rules
pyupgrade
]: Remove outdatedsys.version_info
blocks by @colin99d in https://github.com/charliermarsh/ruff/pull/2099flake8-self
] Add Plugin and RuleSLF001
by @saadmk11 in https://github.com/charliermarsh/ruff/pull/2470pylint
] Implement pylint'stoo-many-statements
rule (PLR0915
) by @chanman3388 in https://github.com/charliermarsh/ruff/pull/2445Settings
isort
] Support forced_separate by @akx in https://github.com/charliermarsh/ruff/pull/2268isort
] Add isort option lines-after-imports by @reidswan in https://github.com/charliermarsh/ruff/pull/2440Bug Fixes
if 0:
andif False:
as type-checking blocks by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2485--add-noqa
edits by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2465ignore
to next config layer ifselect = []
by @not-my-profile in https://github.com/charliermarsh/ruff/pull/2467New Contributors
Full Changelog: astral-sh/ruff@v0.0.239...v0.0.240
v0.0.239
Compare Source
What's Changed
Rules
pyupgrade
] Implement import-replacement rule (UP035
) by @colin99d in https://github.com/charliermarsh/ruff/pull/2049flake8-raise
] Add Plugin andRSE102
Rule by @saadmk11 in https://github.com/charliermarsh/ruff/pull/2354flake8-quotes
] Allow implicit multiline strings with internal quotes to use non-preferred quote by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2416Documentation
Bug Fixes
I001
] fix isort check for files with tabs and no indented blocks by @sciyoshi in https://github.com/charliermarsh/ruff/pull/2374New Contributors
Full Changelog: astral-sh/ruff@v0.0.238...v0.0.239
v0.0.238
Compare Source
What's Changed
select
,extend-select
,ignore
, andextend-ignore
have new semantics (#2312)Previously, the interplay between
select
and its related options could lead to unexpected behavior. For example,ruff --select E501 --ignore ALL
andruff --select E501 --extend-ignore ALL
behaved differently. (See #2312 for more examples.)The new semantics are such that Ruff uses the "highest-priority"
select
as the basis for the rule set, and then applies anyextend-select
,ignore
, andextend-ignore
adjustments. CLI options are given higher priority thanpyproject.toml
options, and the currentpyproject.toml
file is given higher priority than any inheritedpyproject.toml
files.As an example:
ruff --select F401
will select ruleF401
, and ignore any of the modifiers from thepyproject.toml
, as the "highest-priorty" select kicks off the resolution chain.This change is largely backwards compatible -- most users should experience no change in behavior. For more, see BREAKING_CHANGES.md.
remove-six-compat
(UP016
) has been removed (#2332)The
remove-six-compat
rule has been removed. This rule was only useful for one-time Python 2-to-3 upgrades.Rules
too-many-arguments
rule (PLR0913
) by @akhildevelops in https://github.com/charliermarsh/ruff/pull/2308Settings
ruff linter
subcommand by @not-my-profile in https://github.com/charliermarsh/ruff/pull/2294Bug Fixes
exc_info
logger rules by @charliermarsh in https://github.com/charliermarsh/ruff/pull/2364TRY201
] don't check raise statements in nested exception handlers by @sciyoshi in https://github.com/charliermarsh/ruff/pull/2337I001
] fix isort for files with tab-based indentation by @sciyoshi in https://github.com/charliermarsh/ruff/pull/2361New Contributors
Full Changelog: astral-sh/ruff@v0.0.237...v0.0.238
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.