Update dependency ruff to v0.7.1 #1745
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.6.0->^0.7.00.6.4->0.7.1Release Notes
astral-sh/ruff (ruff)
v0.7.1Compare Source
Preview features
E221andE222to flag missing or extra whitespace around==operator (#13890)pylint] Restrictiteration-over-setto only work on sets of literals (PLC0208) (#13731)Rule changes
flake8-type-checking] Support auto-quoting when annotations contain quotes (#11811)Server
Bug fixes
ARG002compatible withEM101when raisingNotImplementedError(#13714)Other changes
v0.7.0Compare Source
Check out the blog post for a migration guide and overview of the changes!
Breaking changes
PT001andPT023now default to omitting the decorator parentheses when there are no arguments(#12838, #13292).
This was a change that we attempted to make in Ruff v0.6.0, but only partially made due to an error on our part.
See the blog post for more details.
useless-try-exceptrule (in ourtryceratopscategory) has been recoded fromTRY302toTRY203(#13502). This ensures Ruff's code is consistent withthe same rule in the
tryceratopslinter.lint.allow-unused-importssetting has been removed (#13677). Uselint.pyflakes.allow-unused-importsinstead.
Formatter preview style
Preview linter features
refurb] implementhardcoded-string-charset(FURB156) (#13530)refurb] Count codepoints not bytes forslice-to-remove-prefix-or-suffix (FURB188)(#13631)Rule changes
pylint] MarkPLE1141fix as unsafe (#13629)flake8-async] Consider async generators to be "checkpoints" forcancel-scope-no-checkpoint(ASYNC100) (#13639)flake8-bugbear] Do not suggest setting parameterstrict=toFalseinB905diagnostic message (#13656)flake8-todos] Only flag the word "TODO", not words starting with "todo" (TD006) (#13640)pycodestyle] Fix whitespace-related false positives and false negatives inside type-parameter lists (E231,E251) (#13704)flake8-simplify] Stabilize preview behavior forSIM115so that the rule can detect filesbeing opened from a wider range of standard-library functions (#12959).
CLI
--statisticscommand (#13774)Bug fixes
pyflakes] Allowipytestcell magic (F401) (#13745)flake8-use-pathlib] FixPTH123false positive whenopenis passed a file descriptor (#13616)flake8-bandit] Detect patterns from multi line SQL statements (S608) (#13574)flake8-pyi] - Fix dropped expressions inPYI030autofix (#13727)v0.6.9Compare Source
Preview features
refurb] MarkFURB118fix as unsafe (#13613)Rule changes
pydocstyle] Don't raiseD208when last line is non-empty (#13372)pylint] Preserve trivia (i.e. comments) inPLR5501autofix (#13573)Configuration
pyflakes] Addallow-unused-importssetting forunused-importrule (F401) (#13601)Bug fixes
flake8-bugbear] Avoid short circuitingB017for multiple context managers (#13609)pylint] Do not offer an invalid fix forPLR1716when the comparisons contain parenthesis (#13527)pyupgrade] FixUP043to apply tocollections.abc.Generatorandcollections.abc.AsyncGenerator(#13611)refurb] Fix handling of slices in tuples forFURB118, e.g.,x[:, 1](#13518)Documentation
astral-sh/ruff-action(#13551)v0.6.8Compare Source
Preview features
match caseclauses (#13510)ifguards inmatch..caseclauses (#13513)ruff analyze graph(#13486)pylint] Implementboolean-chained-comparison(R1716) (#13435)Rule changes
lake8-simplify] DetectSIM910when using variadic keyword arguments, i.e.,**kwargs(#13503)pyupgrade] Avoid false negatives with non-reference shadowed bindings of loop variables (UP028) (#13504)Bug fixes
*args(#13512)Performance
BTreeSetsin module resolver (#13440)v0.6.7Compare Source
Preview features
excludesupport toruff analyze(#13425)Rule changes
pycodestyle] Fix: Don't autofix if the first line ends in a question mark? (D400) (#13399)Bug fixes
lint.excludein ruff check--add-noqa(#13427)Performance
forgetfor module resolver database (#13438)v0.6.6Compare Source
Preview features
refurb] Skipslice-to-remove-prefix-or-suffix(FURB188) when non-trivial slice steps are present (#13405)Formatter
Server
LineIndex::offsetcalculation (#13407)Bug fixes
fastapi] Respect FastAPI aliases in route definitions (#13394)pydocstyle] Respect word boundaries when detecting function signature in docs (#13388)Documentation
FURB188docs (#13406)v0.6.5Compare Source
Preview features
pydoclint] IgnoreDOC201when function name is "new" (#13300)refurb] Implementslice-to-remove-prefix-or-suffix(FURB188) (#13256)Rule changes
eradicate] Ignore script-comments with multiple end-tags (ERA001) (#13283)pyflakes] Improve error message forUndefinedNamewhen a builtin was added in a newer version than specified in Ruff config (F821) (#13293)Server
Bug fixes
ruff] Handle unary operators indecimal-from-float-literal(RUF032) (#13275)CLI
Playground
Configuration
📅 Schedule: Branch creation - "every weekend" in timezone US/Eastern, 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 these updates again.
This PR was generated by Mend Renovate. View the repository job log.