⬆️ Update dependency ruff to v0.0.273 #711
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.272
->0.0.273
Release Notes
astral-sh/ruff
v0.0.273
Compare Source
What's Changed
Highlights include:
flake8-import-conventions
, which require symbol renames across a file.Rules
copyright
] Implement copyright notice detection by @Ryang20718 in https://github.com/astral-sh/ruff/pull/4701flake8-datetimez
] Enable UTC-import fordatetime-utc-alias
fix by @charliermarsh in https://github.com/astral-sh/ruff/pull/5100flake8-implicit-str-concat
] Add autofix forISC001
by @tkukushkin in https://github.com/astral-sh/ruff/pull/4853flake8-import-conventions
] Enable autofix for unconventional imports rule by @charliermarsh in https://github.com/astral-sh/ruff/pull/5152flake8-pyi
] Add autofix forSet
-to-AbstractSet
rewrite using reference tracking by @charliermarsh in https://github.com/astral-sh/ruff/pull/5074flake8-pyi
] Implement PYI044 by @Thomasdezeeuw in https://github.com/astral-sh/ruff/pull/5021flake8-return
] Extend revisedRET504
implementation towith
statements by @charliermarsh in https://github.com/astral-sh/ruff/pull/4998flake8-return
] Implement autofix for revisedRET504
rule by @charliermarsh in https://github.com/astral-sh/ruff/pull/4999flake8-return
] RefactorRET504
to only enforce assignment-then-return pattern by @charliermarsh in https://github.com/astral-sh/ruff/pull/4997flake8-slots
] Add plugin, addSLOT000
,SLOT001
andSLOT002
by @qdegraaf in https://github.com/astral-sh/ruff/pull/4909perflint
] Addperflint
plugin, add first rulePERF102
by @qdegraaf in https://github.com/astral-sh/ruff/pull/4821pylint
] Add Pylint rulecomparison-with-itself
(R0124
) by @tjkuson in https://github.com/astral-sh/ruff/pull/4957pyupgrade
] Add a rule to remove unnecessary parentheses in class definitions by @charliermarsh in https://github.com/astral-sh/ruff/pull/5032ruff
] Add a rule for static keys in dict comprehensions by @rodjunger in https://github.com/astral-sh/ruff/pull/4929ruff
] Add rule to disallow implicit optional with autofix by @dhruvmanila in https://github.com/astral-sh/ruff/pull/4831ruff
] Expand RUF008 to all classes, but to a new code (RUF012) by @adampauls in https://github.com/astral-sh/ruff/pull/4390ruff
] Remove unannotated attributes from RUF008 by @charliermarsh in https://github.com/astral-sh/ruff/pull/5049ruff
] Upgrade explicit-type-conversion rule (RUF010
) to remove unnecessarystr
calls by @charliermarsh in https://github.com/astral-sh/ruff/pull/4971Settings
-o
/--output-file
) to write output to a file by @dhruvmanila in https://github.com/astral-sh/ruff/pull/4950Caching
Jupyter
Bug Fixes
__all__
by @charliermarsh in https://github.com/astral-sh/ruff/pull/4967pytest.fail
by @charliermarsh in https://github.com/astral-sh/ruff/pull/5040async with
inredefined-loop-name
by @charliermarsh in https://github.com/astral-sh/ruff/pull/5125DJ008
enforcement in stub files by @charliermarsh in https://github.com/astral-sh/ruff/pull/5139TypedDict
conversion logic for shadowed builtins and dunder methods by @charliermarsh in https://github.com/astral-sh/ruff/pull/5038__all__
definitions for docstring visibility by @charliermarsh in https://github.com/astral-sh/ruff/pull/5052reimplemented-builtin
if usingawait
by @tjkuson in https://github.com/astral-sh/ruff/pull/5101__future__
imports by @charliermarsh in https://github.com/astral-sh/ruff/pull/5128W293
by @evanrittenhouse in https://github.com/astral-sh/ruff/pull/5172New Contributors
Full Changelog: astral-sh/ruff@v0.0.272...v0.0.273
Configuration
📅 Schedule: Branch creation - "before 2am" (UTC), 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.