chore(deps): update dependency ruff to v0.17.5 #23
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/ruff-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
==0.16.10→==0.17.5Release Notes
astral-sh/ruff (ruff)
v0.17.5Compare Source
Released on 2026-11-12.
Preview features
flake8-async] Implementpytest-raises-exception-group(ASYNC401) (#28772)flake8-logging-format] MarkG004fix as unsafe (#30087)pylint] Implementno-method-argument(PLE0211) (#29748)refurb] Do not offer fix whenwriteis nested in an expression (FURB103) (#29789)ruff] Addrenamed-rule(RUF202) (#30079)ruff] Expandredirected-noqato other suppression comments (RUF101) (#30078)Bug fixes
flake8-import-conventions] Avoid shadowing names when fixing import aliases (ICN001) (#30035)flake8-bugbear] FixB010autofix for parenthesizedsetattrcalls (#30168)flake8-pyi] FixPYI034autofix for parenthesizedselfannotations (#30173)pyupgrade] FixUP031duplicating closing parentheses around the format string (#30172)Rule changes
flake8-bugbear] Ignore frozen dataclass instantiations (B008) (#29231)Performance
Other changes
Contributors
v0.17.4Compare Source
Released on 2026-11-05.
Preview features
flake8-logging-format] Avoid behavior changes and syntax errors in fixes (G004) (#27419)security] Implementtarfile-ignore-zeros-true(#28680)Bug fixes
flake8-simplify] Report collapsibleelifclauses after a multi-statementifbranch (SIM102) (#29814)Rule changes
Performance
pyflakes] Defer value comparisons for repeated dictionary keys (F601,F602) (#29739)CLI
NO_COLORprecedence in Ruff and ty diagnostics (#29898)CLICOLOR=0in Ruff and ty diagnostics (#29910)Documentation
versionandsrcdefaults forruff-action(#29880)flake8-bugbear] MakeB014example error out-of-the-box (#29941)flake8-no-pep420] Document preview behavior (INP001) (#29764)isort] ExpandI001documentation (#29843)Other changes
__debug__write check to attribute targets (#27908)Contributors
v0.17.3Compare Source
Released on 2026-10-26.
Preview features
suspicious] Addshared-clock-mock(#29074)Bug fixes
pyupgrade] Avoid incorrect conversions to f-strings (UP032) (#25485)Performance
ruff format(#29631)Documentation
flake8-bandit] Describe what the rule actually checks forhttpx(S113) (#27936)Contributors
v0.17.2Compare Source
Released on 2026-10-22.
Preview features
complexity] Addunnecessary-regular-expression-compile(#25533)Bug fixes
UP040,UP046,UP047,RUF053) (#28362)pydocstyle] Treat backslash-escaped*argsand**kwargsas documented (D417) (#29536)pylint] Avoid false positive on starred elements (PLE0643) (#29483)pylint] Mark fixes unsafe when deleting comments (PLR5501,PLW0120) (#29414)pyupgrade] Mark fix unsafe when deleting comments (UP035) (#29413)Performance
Configuration
pylint] Add a configurable allowlist formagic-value-comparison(PLR2004) (#18961)Documentation
pyupgrade] Remove mentions of variance related to fix safety (UP040,UP047) (#29592)Contributors
v0.17.1Compare Source
Released on 2026-10-15.
Preview features
pycodestyle] Don't treatNone,True, orFalseas keywords (E271-E274) (#29322)Bug fixes
flake8-pyi] Detect legacy positional-only parameters in__new__methods (PYI063) (#28502)flake8-pyi] Fix false positives on quoted annotations (PYI036) (#29274)perflint] Avoid invalid comprehension suggestions (PERF401,PERF403) (#29366)Rule changes
collectionsandweakrefcontainers as mutable (#29213)Documentation
flake8-import-conventions] Update default and examplealiases(#29333)Contributors
v0.17.0Compare Source
Released on 2026-10-09.
The executables in our macOS and Windows release archives and
ruffwheels are now code-signed.macOS executables are signed with an Apple Developer ID certificate and notarized by Apple. Windows
executables have timestamped Authenticode signatures from Azure Artifact Signing. This enables
verification of the release publisher and binary integrity, supports publisher-based allowlisting,
and should reduce security warnings and antivirus false positives.
Breaking changes
Update the default and latest Python versions for 3.15 (#28792)
Ruff now defaults to Python 3.11 instead of 3.10 when no Python version is configured through
target-versionorrequires-python. Whenchecking for syntax errors without a configured Python version, Ruff now defaults to Python 3.15
instead of 3.14.
Update the default rule set (#28786)
Several of the
flake8-datetimezrules(
DTZ001,DTZ005,DTZ006,DTZ007,DTZ011,DTZ012, andDTZ901) are no longer enabled by default,while
undefined-local-with-nested-import-star-usage(
F406), which corresponds to a syntax error, is now enabled by default.Update Rust crate quick-junit to 0.8.0 (#27295)
JUnit output now uses a
skippedattribute instead ofdisabledon<testsuite>elements andincludes a
skippedattribute on the root<testsuites>element.[
flake8-import-conventions] Adddatetime as dtas a conventional alias (ICN001) (#28790)Support Unicode dummy variable names (#28722)
The default
lint.dummy-variable-rgxnow recognizes underscore-prefixed Unicode names, such as
_次, as dummy variables.Update to Unicode 17 (#21229, #28784)
Ruff now uses Unicode 17 data for identifier normalization and named character escapes (
"\N{...}").Always show unsafe and display-only fixes in the CLI (#27810)
The default
fulloutput format now shows unsafe fixes and suggestions requiring manual review,regardless of the
unsafe-fixessetting.Actually applying unsafe fixes still requires explicit opt-in.
Remove the Python dependency from conda-forge builds (conda-forge/ruff-feedstock#361)
The conda-forge build no longer depends on Python, now supports linux-riscv64, win-arm64, and
linux-ppc64le platforms, and now includes shell completions. However, no longer depending on
Python means that
python -m ruffandimport ruffwill no longer work. Useruffdirectly fromPATHinstead. PyPI installations and those from the standalone installer are unaffected.Remove support for ruff-lsp (#28750)
Support for
ruff-lsp, the legacy Python language server deprecated in Ruffv0.9.5, has been removed. The Ruff VS Code
extension now always uses the native language server;
ruff.nativeServeris deprecated andignored. See the migration guide.
Stabilization
The following rules have been stabilized and are no longer in preview:
lazy-import-mismatch(TID254)lazy-import-immediately-resolved(
TID255)os-path-commonprefix(RUF071)The following behaviors have been stabilized:
unsorted-imports(I001),line-too-long(E501), anddoc-line-too-long(W505) nowconsistently ignore trailing pragma comments when computing line length. This resolved several
bugs involving interactions between these rules
(#27313) but may also cause existing imports to be
reformatted and was thus classified as a breaking change.
Preview features
flake8-bugbear] Report the method name and a more precise range (B005) (#27050)refurb] Mark fix unsafe and move tosuspicious(FURB152) (#28405)ruff] Allow docstrings in strict mode (RUF067) (#28679)Bug fixes
flake8-builtins] Expand checks in class scopes (A001) (#29076)flake8-self] Allow private access onobject.__new__(cls)instances (SLF001) (#29001)flake8-tidy-imports] Skiplazy-import-mismatchin stubs (TID254) (#29095)flake8-type-checking] Add the notion of runtime-ambiguous references (#26508)flake8-type-checking] Never flag annotations in function scopes (#29183)pyflakes] Mark the fix as unsafe when it creates a docstring (F541) (#28258)pylint] Preserve trailing comments inuseless-returnfix (PLR1711) (#29180)ruff] Avoid false positive whenpytest.raisesis used in awithstatement (RUF061) (#28186)Rule changes
pyupgrade] Suggesttyping.TypeFormon Python 3.15 (UP035) (#29084)Contributors
Configuration
📅 Schedule: (in timezone Asia/Taipei)
🚦 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 CLI.
cf1ba76ebf737e5772c9chore(deps): update dependency ruff to v0.17.0to chore(deps): update dependency ruff to v0.17.1chore(deps): update dependency ruff to v0.17.1to chore(deps): update dependency ruff to v0.17.2737e5772c99ed7f642f29ed7f642f26bb6b85b64chore(deps): update dependency ruff to v0.17.2to chore(deps): update dependency ruff to v0.17.36bb6b85b64d6d02a67c4chore(deps): update dependency ruff to v0.17.3to chore(deps): update dependency ruff to v0.17.4d6d02a67c40d4374557dchore(deps): update dependency ruff to v0.17.4to chore(deps): update dependency ruff to v0.17.5View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.