⬆️ Update dependency ruff to ^0.0.238 #47
Merged
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.238
Release Notes
charliermarsh/ruff
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: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.