← Back to issue list

build(deps): update dependency ruff to v0.12.10 (hotfix/1.20)

View original Github issue

Metadata

Project
craft-providers
Number
#811
Type
pull request
State
closed
Author
renovate[bot]
Labels
PR: Dependencies
Created
Updated
Closed

Current evaluation

Ruff 0.12.10 update was closed unmerged after CI failures; Renovate said it would skip that version and retry with a newer release.

Resolution: closed stale

Reason: PR #811 never merged: lint, unit-test, and integration-test jobs failed. After prolonged inactivity, Renovate's closing notification confirmed that 0.12.10 would be ignored until a newer version was available, leaving no resolving commit.

Evaluated by: mr-cal-bot

No scores available.

Issue body

This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [ruff](https://docs.astral.sh/ruff) ([source](https://redirect.github.com/astral-sh/ruff), [changelog](https://redirect.github.com/astral-sh/ruff/blob/main/CHANGELOG.md)) | `==0.1.1` -> `==0.12.10` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.12.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.1.1/0.12.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.12.10`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#01210) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.12.9...0.12.10) ##### Preview features - \[`flake8-simplify`] Implement fix for `maxsplit` without separator (`SIM905`) ([#&#8203;19851](https://redirect.github.com/astral-sh/ruff/pull/19851)) - \[`flake8-use-pathlib`] Add fixes for `PTH102` and `PTH103` ([#&#8203;19514](https://redirect.github.com/astral-sh/ruff/pull/19514)) ##### Bug fixes - \[`isort`] Handle multiple continuation lines after module docstring (`I002`) ([#&#8203;19818](https://redirect.github.com/astral-sh/ruff/pull/19818)) - \[`pyupgrade`] Avoid reporting `__future__` features as unnecessary when they are used (`UP010`) ([#&#8203;19769](https://redirect.github.com/astral-sh/ruff/pull/19769)) - \[`pyupgrade`] Handle nested `Optional`s (`UP045`) ([#&#8203;19770](https://redirect.github.com/astral-sh/ruff/pull/19770)) ##### Rule changes - \[`pycodestyle`] Make `E731` fix unsafe instead of display-only for class assignments ([#&#8203;19700](https://redirect.github.com/astral-sh/ruff/pull/19700)) - \[`pyflakes`] Add secondary annotation showing previous definition (`F811`) ([#&#8203;19900](https://redirect.github.com/astral-sh/ruff/pull/19900)) ##### Documentation - Fix description of global config file discovery strategy ([#&#8203;19188](https://redirect.github.com/astral-sh/ruff/pull/19188)) - Update outdated links to <https://typing.python.org/en/latest/source/stubs.html> ([#&#8203;19992](https://redirect.github.com/astral-sh/ruff/pull/19992)) - \[`flake8-annotations`] Remove unused import in example (`ANN401`) ([#&#8203;20000](https://redirect.github.com/astral-sh/ruff/pull/20000)) ### [`v0.12.9`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0129) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.12.8...0.12.9) ##### Preview features - \[`airflow`] Add check for `airflow.secrets.cache.SecretCache` (`AIR301`) ([#&#8203;17707](https://redirect.github.com/astral-sh/ruff/pull/17707)) - \[`ruff`] Offer a safe fix for multi-digit zeros (`RUF064`) ([#&#8203;19847](https://redirect.github.com/astral-sh/ruff/pull/19847)) ##### Bug fixes - \[`flake8-blind-except`] Fix `BLE001` false-positive on `raise ... from None` ([#&#8203;19755](https://redirect.github.com/astral-sh/ruff/pull/19755)) - \[`flake8-comprehensions`] Fix false positive for `C420` with attribute, subscript, or slice assignment targets ([#&#8203;19513](https://redirect.github.com/astral-sh/ruff/pull/19513)) - \[`flake8-simplify`] Fix handling of U+001C..U+001F whitespace (`SIM905`) ([#&#8203;19849](https://redirect.github.com/astral-sh/ruff/pull/19849)) ##### Rule changes - \[`pylint`] Use lowercase hex characters to match the formatter (`PLE2513`) ([#&#8203;19808](https://redirect.github.com/astral-sh/ruff/pull/19808)) ##### Documentation - Fix `lint.future-annotations` link ([#&#8203;19876](https://redirect.github.com/astral-sh/ruff/pull/19876)) ##### Other changes - Build `riscv64` binaries for release ([#&#8203;19819](https://redirect.github.com/astral-sh/ruff/pull/19819)) - Add rule code to error description in GitLab output ([#&#8203;19896](https://redirect.github.com/astral-sh/ruff/pull/19896)) ### [`v0.12.8`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0128) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.12.7...0.12.8) ##### Preview features - \[`flake8-use-pathlib`] Expand `PTH201` to check all `PurePath` subclasses ([#&#8203;19440](https://redirect.github.com/astral-sh/ruff/pull/19440)) ##### Bug fixes - \[`flake8-blind-except`] Change `BLE001` to correctly parse exception tuples ([#&#8203;19747](https://redirect.github.com/astral-sh/ruff/pull/19747)) - \[`flake8-errmsg`] Exclude `typing.cast` from `EM101` ([#&#8203;19656](https://redirect.github.com/astral-sh/ruff/pull/19656)) - \[`flake8-simplify`] Fix raw string handling in `SIM905` for embedded quotes ([#&#8203;19591](https://redirect.github.com/astral-sh/ruff/pull/19591)) - \[`flake8-import-conventions`] Avoid false positives for NFKC-normalized `__debug__` import aliases in `ICN001` ([#&#8203;19411](https://redirect.github.com/astral-sh/ruff/pull/19411)) - \[`isort`] Fix syntax error after docstring ending with backslash (`I002`) ([#&#8203;19505](https://redirect.github.com/astral-sh/ruff/pull/19505)) - \[`pylint`] Mark `PLC0207` fixes as unsafe when `*args` unpacking is present ([#&#8203;19679](https://redirect.github.com/astral-sh/ruff/pull/19679)) - \[`pyupgrade`] Prevent infinite loop with `I002` (`UP010`, `UP035`) ([#&#8203;19413](https://redirect.github.com/astral-sh/ruff/pull/19413)) - \[`ruff`] Parenthesize generator expressions in f-strings (`RUF010`) ([#&#8203;19434](https://redirect.github.com/astral-sh/ruff/pull/19434)) ##### Rule changes - \[`eradicate`] Don't flag `pyrefly` pragmas as unused code (`ERA001`) ([#&#8203;19731](https://redirect.github.com/astral-sh/ruff/pull/19731)) ##### Documentation - Replace "associative" with "commutative" in docs for `RUF036` ([#&#8203;19706](https://redirect.github.com/astral-sh/ruff/pull/19706)) - Fix copy and line separator colors in dark mode ([#&#8203;19630](https://redirect.github.com/astral-sh/ruff/pull/19630)) - Fix link to `typing` documentation ([#&#8203;19648](https://redirect.github.com/astral-sh/ruff/pull/19648)) - \[`refurb`] Make more examples error out-of-the-box ([#&#8203;19695](https://redirect.github.com/astral-sh/ruff/pull/19695),[#&#8203;19673](https://redirect.github.com/astral-sh/ruff/pull/19673),[#&#8203;19672](https://redirect.github.com/astral-sh/ruff/pull/19672)) ##### Other changes - Include column numbers in GitLab output format ([#&#8203;19708](https://redirect.github.com/astral-sh/ruff/pull/19708)) - Always expand tabs to four spaces in diagnostics ([#&#8203;19618](https://redirect.github.com/astral-sh/ruff/pull/19618)) - Update pre-commit's `ruff` id ([#&#8203;19654](https://redirect.github.com/astral-sh/ruff/pull/19654)) ### [`v0.12.7`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0127) This is a follow-up release to 0.12.6. Because of an issue in the package metadata, 0.12.6 failed to publish fully to PyPI and has been yanked. Similarly, there is no GitHub release or Git tag for 0.12.6. The contents of the 0.12.7 release are identical to 0.12.6, except for the updated metadata. ### [`v0.12.6`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0126) ##### Preview features - \[`flake8-commas`] Add support for trailing comma checks in type parameter lists (`COM812`, `COM819`) ([#&#8203;19390](https://redirect.github.com/astral-sh/ruff/pull/19390)) - \[`pylint`] Implement auto-fix for `missing-maxsplit-arg` (`PLC0207`) ([#&#8203;19387](https://redirect.github.com/astral-sh/ruff/pull/19387)) - \[`ruff`] Offer fixes for `RUF039` in more cases ([#&#8203;19065](https://redirect.github.com/astral-sh/ruff/pull/19065)) ##### Bug fixes - Support `.pyi` files in ruff analyze graph ([#&#8203;19611](https://redirect.github.com/astral-sh/ruff/pull/19611)) - \[`flake8-pyi`] Preserve inline comment in ellipsis removal (`PYI013`) ([#&#8203;19399](https://redirect.github.com/astral-sh/ruff/pull/19399)) - \[`perflint`] Ignore rule if target is `global` or `nonlocal` (`PERF401`) ([#&#8203;19539](https://redirect.github.com/astral-sh/ruff/pull/19539)) - \[`pyupgrade`] Fix `UP030` to avoid modifying double curly braces in format strings ([#&#8203;19378](https://redirect.github.com/astral-sh/ruff/pull/19378)) - \[`refurb`] Ignore decorated functions for `FURB118` ([#&#8203;19339](https://redirect.github.com/astral-sh/ruff/pull/19339)) - \[`refurb`] Mark `int` and `bool` cases for `Decimal.from_float` as safe fixes (`FURB164`) ([#&#8203;19468](https://redirect.github.com/astral-sh/ruff/pull/19468)) - \[`ruff`] Fix `RUF033` for named default expressions ([#&#8203;19115](https://redirect.github.com/astral-sh/ruff/pull/19115)) ##### Rule changes - \[`flake8-blind-except`] Change `BLE001` to permit `logging.critical(..., exc_info=True)` ([#&#8203;19520](https://redirect.github.com/astral-sh/ruff/pull/19520)) ##### Performance - Add support for specifying minimum dots in detected string imports ([#&#8203;19538](https://redirect.github.com/astral-sh/ruff/pull/19538)) ### [`v0.12.5`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0125) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.12.4...0.12.5) ##### Preview features - \[`flake8-use-pathlib`] Add autofix for `PTH101`, `PTH104`, `PTH105`, `PTH121` ([#&#8203;19404](https://redirect.github.com/astral-sh/ruff/pull/19404)) - \[`ruff`] Support byte strings (`RUF055`) ([#&#8203;18926](https://redirect.github.com/astral-sh/ruff/pull/18926)) ##### Bug fixes - Fix `unreachable` panic in parser ([#&#8203;19183](https://redirect.github.com/astral-sh/ruff/pull/19183)) - \[`flake8-pyi`] Skip fix if all `Union` members are `None` (`PYI016`) ([#&#8203;19416](https://redirect.github.com/astral-sh/ruff/pull/19416)) - \[`perflint`] Parenthesize generator expressions (`PERF401`) ([#&#8203;19325](https://redirect.github.com/astral-sh/ruff/pull/19325)) - \[`pylint`] Handle empty comments after line continuation (`PLR2044`) ([#&#8203;19405](https://redirect.github.com/astral-sh/ruff/pull/19405)) ##### Rule changes - \[`pep8-naming`] Fix `N802` false positives for `CGIHTTPRequestHandler` and `SimpleHTTPRequestHandler` ([#&#8203;19432](https://redirect.github.com/astral-sh/ruff/pull/19432)) ### [`v0.12.4`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0124) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.12.3...0.12.4) ##### Preview features - \[`flake8-type-checking`, `pyupgrade`, `ruff`] Add `from __future__ import annotations` when it would allow new fixes (`TC001`, `TC002`, `TC003`, `UP037`, `RUF013`) ([#&#8203;19100](https://redirect.github.com/astral-sh/ruff/pull/19100)) - \[`flake8-use-pathlib`] Add autofix for `PTH109` ([#&#8203;19245](https://redirect.github.com/astral-sh/ruff/pull/19245)) - \[`pylint`] Detect indirect `pathlib.Path` usages for `unspecified-encoding` (`PLW1514`) ([#&#8203;19304](https://redirect.github.com/astral-sh/ruff/pull/19304)) ##### Bug fixes - \[`flake8-bugbear`] Fix `B017` false negatives for keyword exception arguments ([#&#8203;19217](https://redirect.github.com/astral-sh/ruff/pull/19217)) - \[`flake8-use-pathlib`] Fix false negative on direct `Path()` instantiation (`PTH210`) ([#&#8203;19388](https://redirect.github.com/astral-sh/ruff/pull/19388)) - \[`flake8-django`] Fix `DJ008` false positive for abstract models with type-annotated `abstract` field ([#&#8203;19221](https://redirect.github.com/astral-sh/ruff/pull/19221)) - \[`isort`] Fix `I002` import insertion after docstring with multiple string statements ([#&#8203;19222](https://redirect.github.com/astral-sh/ruff/pull/19222)) - \[`isort`] Treat form feed as valid whitespace before a semicolon ([#&#8203;19343](https://redirect.github.com/astral-sh/ruff/pull/19343)) - \[`pydoclint`] Fix `SyntaxError` from fixes with line continuations (`D201`, `D202`) ([#&#8203;19246](https://redirect.github.com/astral-sh/ruff/pull/19246)) - \[`refurb`] `FURB164` fix should validate arguments and should usually be marked unsafe ([#&#8203;19136](https://redirect.github.com/astral-sh/ruff/pull/19136)) ##### Rule changes - \[`flake8-use-pathlib`] Skip single dots for `invalid-pathlib-with-suffix` (`PTH210`) on versions >= 3.14 ([#&#8203;19331](https://redirect.github.com/astral-sh/ruff/pull/19331)) - \[`pep8_naming`] Avoid false positives on standard library functions with uppercase names (`N802`) ([#&#8203;18907](https://redirect.github.com/astral-sh/ruff/pull/18907)) - \[`pycodestyle`] Handle brace escapes for t-strings in logical lines ([#&#8203;19358](https://redirect.github.com/astral-sh/ruff/pull/19358)) - \[`pylint`] Extend invalid string character rules to include t-strings ([#&#8203;19355](https://redirect.github.com/astral-sh/ruff/pull/19355)) - \[`ruff`] Allow `strict` kwarg when checking for `starmap-zip` (`RUF058`) in Python 3.14+ ([#&#8203;19333](https://redirect.github.com/astral-sh/ruff/pull/19333)) ##### Documentation - \[`flake8-type-checking`] Make `TC010` docs example more realistic ([#&#8203;19356](https://redirect.github.com/astral-sh/ruff/pull/19356)) - Make more documentation examples error out-of-the-box ([#&#8203;19288](https://redirect.github.com/astral-sh/ruff/pull/19288),[#&#8203;19272](https://redirect.github.com/astral-sh/ruff/pull/19272),[#&#8203;19291](https://redirect.github.com/astral-sh/ruff/pull/19291),[#&#8203;19296](https://redirect.github.com/astral-sh/ruff/pull/19296),[#&#8203;19292](https://redirect.github.com/astral-sh/ruff/pull/19292),[#&#8203;19295](https://redirect.github.com/astral-sh/ruff/pull/19295),[#&#8203;19297](https://redirect.github.com/astral-sh/ruff/pull/19297),[#&#8203;19309](https://redirect.github.com/astral-sh/ruff/pull/19309)) ### [`v0.12.3`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0123) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.12.2...0.12.3) ##### Preview features - \[`flake8-bugbear`] Support non-context-manager calls in `B017` ([#&#8203;19063](https://redirect.github.com/astral-sh/ruff/pull/19063)) - \[`flake8-use-pathlib`] Add autofixes for `PTH100`, `PTH106`, `PTH107`, `PTH108`, `PTH110`, `PTH111`, `PTH112`, `PTH113`, `PTH114`, `PTH115`, `PTH117`, `PTH119`, `PTH120` ([#&#8203;19213](https://redirect.github.com/astral-sh/ruff/pull/19213)) - \[`flake8-use-pathlib`] Add autofixes for `PTH203`, `PTH204`, `PTH205` ([#&#8203;18922](https://redirect.github.com/astral-sh/ruff/pull/18922)) ##### Bug fixes - \[`flake8-return`] Fix false-positive for variables used inside nested functions in `RET504` ([#&#8203;18433](https://redirect.github.com/astral-sh/ruff/pull/18433)) - Treat form feed as valid whitespace before a line continuation ([#&#8203;19220](https://redirect.github.com/astral-sh/ruff/pull/19220)) - \[`flake8-type-checking`] Fix syntax error introduced by fix (`TC008`) ([#&#8203;19150](https://redirect.github.com/astral-sh/ruff/pull/19150)) - \[`pyupgrade`] Keyword arguments in `super` should suppress the `UP008` fix ([#&#8203;19131](https://redirect.github.com/astral-sh/ruff/pull/19131)) ##### Documentation - \[`flake8-pyi`] Make example error out-of-the-box (`PYI007`, `PYI008`) ([#&#8203;19103](https://redirect.github.com/astral-sh/ruff/pull/19103)) - \[`flake8-simplify`] Make example error out-of-the-box (`SIM116`) ([#&#8203;19111](https://redirect.github.com/astral-sh/ruff/pull/19111)) - \[`flake8-type-checking`] Make example error out-of-the-box (`TC001`) ([#&#8203;19151](https://redirect.github.com/astral-sh/ruff/pull/19151)) - \[`flake8-use-pathlib`] Make example error out-of-the-box (`PTH210`) ([#&#8203;19189](https://redirect.github.com/astral-sh/ruff/pull/19189)) - \[`pycodestyle`] Make example error out-of-the-box (`E272`) ([#&#8203;19191](https://redirect.github.com/astral-sh/ruff/pull/19191)) - \[`pycodestyle`] Make example not raise unnecessary `SyntaxError` (`E114`) ([#&#8203;19190](https://redirect.github.com/astral-sh/ruff/pull/19190)) - \[`pydoclint`] Make example error out-of-the-box (`DOC501`) ([#&#8203;19218](https://redirect.github.com/astral-sh/ruff/pull/19218)) - \[`pylint`, `pyupgrade`] Fix syntax errors in examples (`PLW1501`, `UP028`) ([#&#8203;19127](https://redirect.github.com/astral-sh/ruff/pull/19127)) - \[`pylint`] Update `missing-maxsplit-arg` docs and error to suggest proper usage (`PLC0207`) ([#&#8203;18949](https://redirect.github.com/astral-sh/ruff/pull/18949)) - \[`flake8-bandit`] Make example error out-of-the-box (`S412`) ([#&#8203;19241](https://redirect.github.com/astral-sh/ruff/pull/19241)) ### [`v0.12.2`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0122) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.12.1...0.12.2) ##### Preview features - \[`flake8-pyi`] Expand `Optional[A]` to `A | None` (`PYI016`) ([#&#8203;18572](https://redirect.github.com/astral-sh/ruff/pull/18572)) - \[`pyupgrade`] Mark `UP008` fix safe if no comments are in range ([#&#8203;18683](https://redirect.github.com/astral-sh/ruff/pull/18683)) ##### Bug fixes - \[`flake8-comprehensions`] Fix `C420` to prepend whitespace when needed ([#&#8203;18616](https://redirect.github.com/astral-sh/ruff/pull/18616)) - \[`perflint`] Fix `PERF403` panic on attribute or subscription loop variable ([#&#8203;19042](https://redirect.github.com/astral-sh/ruff/pull/19042)) - \[`pydocstyle`] Fix `D413` infinite loop for parenthesized docstring ([#&#8203;18930](https://redirect.github.com/astral-sh/ruff/pull/18930)) - \[`pylint`] Fix `PLW0108` autofix introducing a syntax error when the lambda's body contains an assignment expression ([#&#8203;18678](https://redirect.github.com/astral-sh/ruff/pull/18678)) - \[`refurb`] Fix false positive on empty tuples (`FURB168`) ([#&#8203;19058](https://redirect.github.com/astral-sh/ruff/pull/19058)) - \[`ruff`] Allow more `field` calls from `attrs` (`RUF009`) ([#&#8203;19021](https://redirect.github.com/astral-sh/ruff/pull/19021)) - \[`ruff`] Fix syntax error introduced for an empty string followed by a u-prefixed string (`UP025`) ([#&#8203;18899](https://redirect.github.com/astral-sh/ruff/pull/18899)) ##### Rule changes - \[`flake8-executable`] Allow `uvx` in shebang line (`EXE003`) ([#&#8203;18967](https://redirect.github.com/astral-sh/ruff/pull/18967)) - \[`pandas`] Avoid flagging `PD002` if `pandas` is not imported ([#&#8203;18963](https://redirect.github.com/astral-sh/ruff/pull/18963)) - \[`pyupgrade`] Avoid PEP-604 unions with `typing.NamedTuple` (`UP007`, `UP045`) ([#&#8203;18682](https://redirect.github.com/astral-sh/ruff/pull/18682)) ##### Documentation - Document link between `import-outside-top-level (PLC0415)` and `lint.flake8-tidy-imports.banned-module-level-imports` ([#&#8203;18733](https://redirect.github.com/astral-sh/ruff/pull/18733)) - Fix description of the `format.skip-magic-trailing-comma` example ([#&#8203;19095](https://redirect.github.com/astral-sh/ruff/pull/19095)) - \[`airflow`] Make `AIR302` example error out-of-the-box ([#&#8203;18988](https://redirect.github.com/astral-sh/ruff/pull/18988)) - \[`airflow`] Make `AIR312` example error out-of-the-box ([#&#8203;18989](https://redirect.github.com/astral-sh/ruff/pull/18989)) - \[`flake8-annotations`] Make `ANN401` example error out-of-the-box ([#&#8203;18974](https://redirect.github.com/astral-sh/ruff/pull/18974)) - \[`flake8-async`] Make `ASYNC100` example error out-of-the-box ([#&#8203;18993](https://redirect.github.com/astral-sh/ruff/pull/18993)) - \[`flake8-async`] Make `ASYNC105` example error out-of-the-box ([#&#8203;19002](https://redirect.github.com/astral-sh/ruff/pull/19002)) - \[`flake8-async`] Make `ASYNC110` example error out-of-the-box ([#&#8203;18975](https://redirect.github.com/astral-sh/ruff/pull/18975)) - \[`flake8-async`] Make `ASYNC210` example error out-of-the-box ([#&#8203;18977](https://redirect.github.com/astral-sh/ruff/pull/18977)) - \[`flake8-async`] Make `ASYNC220`, `ASYNC221`, and `ASYNC222` examples error out-of-the-box ([#&#8203;18978](https://redirect.github.com/astral-sh/ruff/pull/18978)) - \[`flake8-async`] Make `ASYNC251` example error out-of-the-box ([#&#8203;18990](https://redirect.github.com/astral-sh/ruff/pull/18990)) - \[`flake8-bandit`] Make `S201` example error out-of-the-box ([#&#8203;19017](https://redirect.github.com/astral-sh/ruff/pull/19017)) - \[`flake8-bandit`] Make `S604` and `S609` examples error out-of-the-box ([#&#8203;19049](https://redirect.github.com/astral-sh/ruff/pull/19049)) - \[`flake8-bugbear`] Make `B028` example error out-of-the-box ([#&#8203;19054](https://redirect.github.com/astral-sh/ruff/pull/19054)) - \[`flake8-bugbear`] Make `B911` example error out-of-the-box ([#&#8203;19051](https://redirect.github.com/astral-sh/ruff/pull/19051)) - \[`flake8-datetimez`] Make `DTZ011` example error out-of-the-box ([#&#8203;19055](https://redirect.github.com/astral-sh/ruff/pull/19055)) - \[`flake8-datetimez`] Make `DTZ901` example error out-of-the-box ([#&#8203;19056](https://redirect.github.com/astral-sh/ruff/pull/19056)) - \[`flake8-pyi`] Make `PYI032` example error out-of-the-box ([#&#8203;19061](https://redirect.github.com/astral-sh/ruff/pull/19061)) - \[`flake8-pyi`] Make example error out-of-the-box (`PYI014`, `PYI015`) ([#&#8203;19097](https://redirect.github.com/astral-sh/ruff/pull/19097)) - \[`flake8-pyi`] Make example error out-of-the-box (`PYI042`) ([#&#8203;19101](https://redirect.github.com/astral-sh/ruff/pull/19101)) - \[`flake8-pyi`] Make example error out-of-the-box (`PYI059`) ([#&#8203;19080](https://redirect.github.com/astral-sh/ruff/pull/19080)) - \[`flake8-pyi`] Make example error out-of-the-box (`PYI062`) ([#&#8203;19079](https://redirect.github.com/astral-sh/ruff/pull/19079)) - \[`flake8-pytest-style`] Make example error out-of-the-box (`PT023`) ([#&#8203;19104](https://redirect.github.com/astral-sh/ruff/pull/19104)) - \[`flake8-pytest-style`] Make example error out-of-the-box (`PT030`) ([#&#8203;19105](https://redirect.github.com/astral-sh/ruff/pull/19105)) - \[`flake8-quotes`] Make example error out-of-the-box (`Q003`) ([#&#8203;19106](https://redirect.github.com/astral-sh/ruff/pull/19106)) - \[`flake8-simplify`] Make example error out-of-the-box (`SIM110`) ([#&#8203;19113](https://redirect.github.com/astral-sh/ruff/pull/19113)) - \[`flake8-simplify`] Make example error out-of-the-box (`SIM113`) ([#&#8203;19109](https://redirect.github.com/astral-sh/ruff/pull/19109)) - \[`flake8-simplify`] Make example error out-of-the-box (`SIM401`) ([#&#8203;19110](https://redirect.github.com/astral-sh/ruff/pull/19110)) - \[`pyflakes`] Fix backslash in docs (`F621`) ([#&#8203;19098](https://redirect.github.com/astral-sh/ruff/pull/19098)) - \[`pylint`] Fix `PLC0415` example ([#&#8203;18970](https://redirect.github.com/astral-sh/ruff/pull/18970)) ### [`v0.12.1`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0121) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.12.0...0.12.1) ##### Preview features - \[`flake8-errmsg`] Extend `EM101` to support byte strings ([#&#8203;18867](https://redirect.github.com/astral-sh/ruff/pull/18867)) - \[`flake8-use-pathlib`] Add autofix for `PTH202` ([#&#8203;18763](https://redirect.github.com/astral-sh/ruff/pull/18763)) - \[`pygrep-hooks`] Add `AsyncMock` methods to `invalid-mock-access` (`PGH005`) ([#&#8203;18547](https://redirect.github.com/astral-sh/ruff/pull/18547)) - \[`pylint`] Ignore `__init__.py` files in (`PLC0414`) ([#&#8203;18400](https://redirect.github.com/astral-sh/ruff/pull/18400)) - \[`ruff`] Trigger `RUF037` for empty string and byte strings ([#&#8203;18862](https://redirect.github.com/astral-sh/ruff/pull/18862)) - \[formatter] Fix missing blank lines before decorated classes in `.pyi` files ([#&#8203;18888](https://redirect.github.com/astral-sh/ruff/pull/18888)) ##### Bug fixes - Avoid generating diagnostics with per-file ignores ([#&#8203;18801](https://redirect.github.com/astral-sh/ruff/pull/18801)) - Handle parenthesized arguments in `remove_argument` ([#&#8203;18805](https://redirect.github.com/astral-sh/ruff/pull/18805)) - \[`flake8-logging`] Avoid false positive for `exc_info=True` outside `logger.exception` (`LOG014`) ([#&#8203;18737](https://redirect.github.com/astral-sh/ruff/pull/18737)) - \[`flake8-pytest-style`] Enforce `pytest` import for decorators ([#&#8203;18779](https://redirect.github.com/astral-sh/ruff/pull/18779)) - \[`flake8-pytest-style`] Mark autofix for `PT001` and `PT023` as unsafe if there's comments in the decorator ([#&#8203;18792](https://redirect.github.com/astral-sh/ruff/pull/18792)) - \[`flake8-pytest-style`] `PT001`/`PT023` fix makes syntax error on parenthesized decorator ([#&#8203;18782](https://redirect.github.com/astral-sh/ruff/pull/18782)) - \[`flake8-raise`] Make fix unsafe if it deletes comments (`RSE102`) ([#&#8203;18788](https://redirect.github.com/astral-sh/ruff/pull/18788)) - \[`flake8-simplify`] Fix `SIM911` autofix creating a syntax error ([#&#8203;18793](https://redirect.github.com/astral-sh/ruff/pull/18793)) - \[`flake8-simplify`] Fix false negatives for shadowed bindings (`SIM910`, `SIM911`) ([#&#8203;18794](https://redirect.github.com/astral-sh/ruff/pull/18794)) - \[`flake8-simplify`] Preserve original behavior for `except ()` and bare `except` (`SIM105`) ([#&#8203;18213](https://redirect.github.com/astral-sh/ruff/pull/18213)) - \[`flake8-pyi`] Fix `PYI041`'s fix causing `TypeError` with `None | None | ...` ([#&#8203;18637](https://redirect.github.com/astral-sh/ruff/pull/18637)) - \[`perflint`] Fix `PERF101` autofix creating a syntax error and mark autofix as unsafe if there are comments in the `list` call expr ([#&#8203;18803](https://redirect.github.com/astral-sh/ruff/pull/18803)) - \[`perflint`] Fix false negative in `PERF401` ([#&#8203;18866](https://redirect.github.com/astral-sh/ruff/pull/18866)) - \[`pylint`] Avoid flattening nested `min`/`max` when outer call has single argument (`PLW3301`) ([#&#8203;16885](https://redirect.github.com/astral-sh/ruff/pull/16885)) - \[`pylint`] Fix `PLC2801` autofix creating a syntax error ([#&#8203;18857](https://redirect.github.com/astral-sh/ruff/pull/18857)) - \[`pylint`] Mark `PLE0241` autofix as unsafe if there's comments in the base classes ([#&#8203;18832](https://redirect.github.com/astral-sh/ruff/pull/18832)) - \[`pylint`] Suppress `PLE2510`/`PLE2512`/`PLE2513`/`PLE2514`/`PLE2515` autofix if the text contains an odd number of backslashes ([#&#8203;18856](https://redirect.github.com/astral-sh/ruff/pull/18856)) - \[`refurb`] Detect more exotic float literals in `FURB164` ([#&#8203;18925](https://redirect.github.com/astral-sh/ruff/pull/18925)) - \[`refurb`] Fix `FURB163` autofix creating a syntax error for `yield` expressions ([#&#8203;18756](https://redirect.github.com/astral-sh/ruff/pull/18756)) - \[`refurb`] Mark `FURB129` autofix as unsafe if there's comments in the `readlines` call ([#&#8203;18858](https://redirect.github.com/astral-sh/ruff/pull/18858)) - \[`ruff`] Fix false positives and negatives in `RUF010` ([#&#8203;18690](https://redirect.github.com/astral-sh/ruff/pull/18690)) - Fix casing of `analyze.direction` variant names ([#&#8203;18892](https://redirect.github.com/astral-sh/ruff/pull/18892)) ##### Rule changes - Fix f-string interpolation escaping in generated fixes ([#&#8203;18882](https://redirect.github.com/astral-sh/ruff/pull/18882)) - \[`flake8-return`] Mark `RET501` fix unsafe if comments are inside ([#&#8203;18780](https://redirect.github.com/astral-sh/ruff/pull/18780)) - \[`flake8-async`] Fix detection for large integer sleep durations in `ASYNC116` rule ([#&#8203;18767](https://redirect.github.com/astral-sh/ruff/pull/18767)) - \[`flake8-async`] Mark autofix for `ASYNC115` as unsafe if the call expression contains comments ([#&#8203;18753](https://redirect.github.com/astral-sh/ruff/pull/18753)) - \[`flake8-bugbear`] Mark autofix for `B004` as unsafe if the `hasattr` call expr contains comments ([#&#8203;18755](https://redirect.github.com/astral-sh/ruff/pull/18755)) - \[`flake8-comprehension`] Mark autofix for `C420` as unsafe if there's comments inside the dict comprehension ([#&#8203;18768](https://redirect.github.com/astral-sh/ruff/pull/18768)) - \[`flake8-comprehensions`] Handle template strings for comprehension fixes ([#&#8203;18710](https://redirect.github.com/astral-sh/ruff/pull/18710)) - \[`flake8-future-annotations`] Add autofix (`FA100`) ([#&#8203;18903](https://redirect.github.com/astral-sh/ruff/pull/18903)) - \[`pyflakes`] Mark `F504`/`F522`/`F523` autofix as unsafe if there's a call with side effect ([#&#8203;18839](https://redirect.github.com/astral-sh/ruff/pull/18839)) - \[`pylint`] Allow fix with comments and document performance implications (`PLW3301`) ([#&#8203;18936](https://redirect.github.com/astral-sh/ruff/pull/18936)) - \[`pylint`] Detect more exotic `NaN` literals in `PLW0177` ([#&#8203;18630](https://redirect.github.com/astral-sh/ruff/pull/18630)) - \[`pylint`] Fix `PLC1802` autofix creating a syntax error and mark autofix as unsafe if there's comments in the `len` call ([#&#8203;18836](https://redirect.github.com/astral-sh/ruff/pull/18836)) - \[`pyupgrade`] Extend version detection to include `sys.version_info.major` (`UP036`) ([#&#8203;18633](https://redirect.github.com/astral-sh/ruff/pull/18633)) - \[`ruff`] Add lint rule `RUF064` for calling `chmod` with non-octal integers ([#&#8203;18541](https://redirect.github.com/astral-sh/ruff/pull/18541)) - \[`ruff`] Added `cls.__dict__.get('__annotations__')` check (`RUF063`) ([#&#8203;18233](https://redirect.github.com/astral-sh/ruff/pull/18233)) - \[`ruff`] Frozen `dataclass` default should be valid (`RUF009`) ([#&#8203;18735](https://redirect.github.com/astral-sh/ruff/pull/18735)) ##### Server - Consider virtual path for various server actions ([#&#8203;18910](https://redirect.github.com/astral-sh/ruff/pull/18910)) ##### Documentation - Add fix safety sections ([#&#8203;18940](https://redirect.github.com/astral-sh/ruff/pull/18940),[#&#8203;18841](https://redirect.github.com/astral-sh/ruff/pull/18841),[#&#8203;18802](https://redirect.github.com/astral-sh/ruff/pull/18802),[#&#8203;18837](https://redirect.github.com/astral-sh/ruff/pull/18837),[#&#8203;18800](https://redirect.github.com/astral-sh/ruff/pull/18800),[#&#8203;18415](https://redirect.github.com/astral-sh/ruff/pull/18415),[#&#8203;18853](https://redirect.github.com/astral-sh/ruff/pull/18853),[#&#8203;18842](https://redirect.github.com/astral-sh/ruff/pull/18842)) - Use updated pre-commit id ([#&#8203;18718](https://redirect.github.com/astral-sh/ruff/pull/18718)) - \[`perflint`] Small docs improvement to `PERF401` ([#&#8203;18786](https://redirect.github.com/astral-sh/ruff/pull/18786)) - \[`pyupgrade`]: Use `super()`, not `__super__` in error messages (`UP008`) ([#&#8203;18743](https://redirect.github.com/astral-sh/ruff/pull/18743)) - \[`flake8-pie`] Small docs fix to `PIE794` ([#&#8203;18829](https://redirect.github.com/astral-sh/ruff/pull/18829)) - \[`flake8-pyi`] Correct `collections-named-tuple` example to use PascalCase assignment ([#&#8203;16884](https://redirect.github.com/astral-sh/ruff/pull/16884)) - \[`flake8-pie`] Add note on type checking benefits to `unnecessary-dict-kwargs` (`PIE804`) ([#&#8203;18666](https://redirect.github.com/astral-sh/ruff/pull/18666)) - \[`pycodestyle`] Clarify PEP 8 relationship to `whitespace-around-operator` rules ([#&#8203;18870](https://redirect.github.com/astral-sh/ruff/pull/18870)) ##### Other changes - Disallow newlines in format specifiers of single quoted f- or t-strings ([#&#8203;18708](https://redirect.github.com/astral-sh/ruff/pull/18708)) - \[`flake8-logging`] Add fix safety section to `LOG002` ([#&#8203;18840](https://redirect.github.com/astral-sh/ruff/pull/18840)) - \[`pyupgrade`] Add fix safety section to `UP010` ([#&#8203;18838](https://redirect.github.com/astral-sh/ruff/pull/18838)) ### [`v0.12.0`](https://redirect.github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0120) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.11.13...0.12.0) Check out the [blog post](https://astral.sh/blog/ruff-v0.12.0) for a migration guide and overview of the changes! ##### Breaking changes - **Detection of more syntax errors** Ruff now detects version-related syntax errors, such as the use of the `match` statement on Python versions before 3.10, and syntax errors emitted by CPython's compiler, such as irrefutable `match` patterns before the final `case` arm. - **New default Python version handling for syntax errors** Ruff will default to the *latest* supported Python version (3.13) when checking for the version-related syntax errors mentioned above to prevent false positives in projects without a Python version configured. The default in all other cases, like applying lint rules, is unchanged and remains at the minimum supported Python version (3.9). - **Updated f-string formatting** Ruff now formats multi-line f-strings with format specifiers to avoid adding a line break after the format specifier. This addresses a change to the Python grammar in version 3.13.4 that made such a line break a syntax error. - **`rust-toolchain.toml` is no longer included in source distributions** The `rust-toolchain.toml` is used to specify a higher Rust version than Ruff's minimum supported Rust version (MSRV) for development and building release artifacts. However, when present in source distributions, it would also cause downstream package maintainers to pull in the same Rust toolchain, even if their available toolchain was MSRV-compatible. ##### Removed Rules The following rules have been removed: - [`suspicious-xmle-tree-usage`](https://docs.astral.sh/ruff/rules/suspicious-xmle-tree-usage/) (`S320`) ##### Deprecated Rules The following rules have been deprecated: - [`pandas-df-variable-name`](https://docs.astral.sh/ruff/rules/pandas-df-variable-name/) ##### Stabilization The following rules have been stabilized and are no longer in preview: - [`for-loop-writes`](https://docs.astral.sh/ruff/rules/for-loop-writes) (`FURB122`) - [`check-and-remove-from-set`](https://docs.astral.sh/ruff/rules/check-and-remove-from-set) (`FURB132`) - [`verbose-decimal-constructor`](https://docs.astral.sh/ruff/rules/verbose-decimal-constructor) (`FURB157`) - [`fromisoformat-replace-z`](https://docs.astral.sh/ruff/rules/fromisoformat-replace-z) (`FURB162`) - [`int-on-sliced-str`](https://docs.astral.sh/ruff/rules/int-on-sliced-str) (`FURB166`) - [`exc-info-outside-except-handler`](https://docs.astral.sh/ruff/rules/exc-info-outside-except-handler) (`LOG014`) - [`import-outside-top-level`](https://docs.astral.sh/ruff/rules/import-outside-top-level) (`PLC0415`) - [`unnecessary-dict-index-lookup`](https://docs.astral.sh/ruff/rules/unnecessary-dict-index-lookup) (`PLR1733`) - [`nan-comparison`](https://docs.astral.sh/ruff/rules/nan-comparison) (`PLW0177`) - [`eq-without-hash`](https://docs.astral.sh/ruff/rules/eq-without-hash) (`PLW1641`) - [`pytest-parameter-with-default-argument`](https://docs.astral.sh/ruff/rules/pytest-parameter-with-default-argument) (`PT028`) - [`pytest-warns-too-broad`](https://docs.astral.sh/ruff/rules/pytest-warns-too-broad) (`PT030`) - [`pytest-warns-with-multiple-statements`](https://docs.astral.sh/ruff/rules/pytest-warns-with-multiple-statements) (`PT031`) - [`invalid-formatter-suppression-comment`](https://docs.astral.sh/ruff/rules/invalid-formatter-suppression-comment) (`RUF028`) - [`dataclass-enum`](https://docs.astral.sh/ruff/rules/dataclass-enum) (`RUF049`) - [`class-with-mixed-type-vars`](https://docs.astral.sh/ruff/rules/class-with-mixed-type-vars) (`RUF053`) - [`unnecessary-round`](https://docs.astral.sh/ruff/rules/unnecessary-round) (`RUF057`) - [`starmap-zip`](https://docs.astral.sh/ruff/rules/starmap-zip) (`RUF058`) - \[`non-pep604-annotation-optional`] (`UP045`) - [`non-pep695-generic-class`](https://docs.astral.sh/ruff/rules/non-pep695-generic-class) (`UP046`) - [`non-pep695-generic-function`](https://docs.astral.sh/ruff/rules/non-pep695-generic-function) (`UP047`) - [`private-type-parameter`](https://docs.astral.sh/ruff/rules/private-type-parameter) (`UP049`) The following behaviors have been stabilized: - \[`collection-literal-concatenation`] (`RUF005`) now recognizes slices, in addition to list literals and variables. - The fix for \[`readlines-in-for`] (`FURB129`) is now marked as always safe. - \[`if-else-block-instead-of-if-exp`] (`SIM108`) will now further simplify expressions to use `or` instead of an `if` expression, where possible. - \[`unused-noqa`] (`RUF100`) now checks for file-level `noqa` comments as well as inline comments. - \[`subprocess-without-shell-equals-true`] (`S603`) now accepts literal strings, as well as lists and tuples of literal strings, as trusted input. - \[`boolean-type-hint-positional-argument`] (`FBT001`) now applies to types that include `bool`, like `bool | int` or `typing.Optional[bool]`, in addition to plain `bool` annotations. - \[`non-pep604-annotation-union`] (`UP007`) has now been split into two rules. `UP007` now applies only to `typing.Union`, while \[`non-pep604-annotation-optional`] (`UP045`) checks for use of `typing.Optional`. `UP045` has also been stabilized in this release, but you may need to update existing `include`, `ignore`, or `noqa` settings to accommodate this change. ##### Preview features - \[`ruff`] Check for non-context-manager use of `pytest.raises`, `pytest.warns`, and `pytest.deprecated_call` (`RUF061`) ([#&#8203;17368](https://redirect.github.com/astral-sh/ruff/pull/17368)) - \[syntax-errors] Raise unsupported syntax error for template strings prior to Python 3.14 ([#&#8203;18664](https://redirect.github.com/astral-sh/ruff/pull/18664)) ##### Bug fixes - Add syntax error when conversion flag does not immediately follow exclamation mark ([#&#8203;18706](https://redirect.github.com/astral-sh/ruff/pull/18706)) - Add trailing space around `readlines` ([#&#8203;18542](https://redirect.github.com/astral-sh/ruff/pull/18542)) - Fix `\r` and `\r\n` handling in t- and f-string debug texts ([#&#8203;18673](https://redirect.github.com/astral-sh/ruff/pull/18673)) - Hug closing `}` when f-string expression has a format specifier ([#&#8203;18704](https://redirect.github.com/astral-sh/ruff/pull/18704)) - \[`flake8-pyi`] Avoid syntax error in the case of starred and keyword arguments (`PYI059`) ([#&#8203;18611](https://redirect.github.com/astral-sh/ruff/pull/18611)) - \[`flake8-return`] Fix `RET504` autofix generating a syntax error ([#&#8203;18428](https://redirect.github.com/astral-sh/ruff/pull/18428)) - \[`pep8-naming`] Suppress fix for `N804` and `N805` if the recommended name is already used ([#&#8203;18472](https://redirect.github.com/astral-sh/ruff/pull/18472)) - \[`pycodestyle`] Avoid causing a syntax error in expressions spanning multiple lines (`E731`) ([#&#8203;18479](https://redirect.github.com/astral-sh/ruff/pull/18479)) - \[`pyupgrade`] Suppress `UP008` if `super` is shadowed ([#&#8203;18688](https://redirect.github.com/astral-sh/ruff/pull/18688)) - \[`refurb`] Parenthesize lambda and ternary expressions (`FURB122`, `FURB142`) ([#&#8203;18592](https://redirect.github.com/astral-sh/ruff/pull/18592)) - \[`ruff`] Handle extra arguments to `deque` (`RUF037`) ([#&#8203;18614](https://redirect.github.com/astral-sh/ruff/pull/18614)) - \[`ruff`] Preserve parentheses around `deque` in fix for `unnecessary-empty-iterable-within-deque-call` (`RUF037`) ([#&#8203;18598](https://redirect.github.com/astral-sh/ruff/pull/18598)) - \[`ruff`] Validate arguments before offering a fix (`RUF056`) ([#&#8203;18631](https://redirect.github.com/astral-sh/ruff/pull/18631)) - \[`ruff`] Skip fix for `RUF059` if dummy name is already bound ([#&#8203;18509](https://redirect.github.com/astral-sh/ruff/pull/18509)) - \[`pylint`] Fix `PLW0128` to check assignment targets in square brackets and after asterisks ([#&#8203;18665](https://redirect.github.com/astral-sh/ruff/pull/18665)) ##### Rule changes - Fix false positive on mutations in `return` statements (`B909`) ([#&#8203;18408](https://redirect.github.com/astral-sh/ruff/pull/18408)) - Treat `ty:` comments as pragma comments ([#&#8203;18532](https://redirect.github.com/astral-sh/ruff/pull/18532)) - \[`flake8-pyi`] Apply `custom-typevar-for-self` to string annotations (`PYI019`) ([#&#8203;18311](https://redirect.github.com/astral-sh/ruff/pull/18311)) - \[`pyupgrade`] Don't offer a fix for `Optional[None]` (`UP007`, `UP045)` ([#&#8203;18545](https://redirect.github.com/astral-sh/ruff/pull/18545)) - \[`pyupgrade`] Fix `super(__class__, self)` detection (`UP008`) ([#&#8203;18478](https://redirect.github.com/astral-sh/ruff/pull/18478)) - \[`refurb`] Make the fix for `FURB163` unsafe for `log2`, `log10`, `*args`, and deleted comments ([#&#8203;18645](https://redirect.github.com/astral-sh/ruff/pull/18645)) ##### Server - Support cancellation requests ([#&#8203;18627](https://redirect.github.com/astral-sh/ruff/pull/18627)) ##### Documentation - Drop confusing second `*` from glob pattern example for `per-file-target-version` ([#&#8203;18709](https://redirect.github.com/astral-sh/ruff/pull/18709)) - Update Neovim configuration examples ([#&#8203;18491](https://redirect.github.com/astral-sh/ruff/pull/18491)) - \[`pylint`] De-emphasize `__hash__ = Parent.__hash__` (`PLW1641`) ([#&#8203;18613](https://redirect.github.com/astral-sh/ruff/pull/18613)) - \[`refurb`] Add a note about float literal handling (`FURB157`) ([#&#8203;18615](https://redirect.github.com/astral-sh/ruff/pull/18615)) ### [`v0.11.13`](https://redirect.github.com/astral-sh/ruff/releases/tag/0.11.13) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.11.12...0.11.13) #### Release Notes ##### Preview features - \[`airflow`] Add unsafe fix for module moved cases (`AIR301`,`AIR311`,`AIR312`,`AIR302`) ([#&#8203;18367](https://redirect.github.com/astral-sh/ruff/pull/18367),[#&#8203;18366](https://redirect.github.com/astral-sh/ruff/pull/18366),[#&#8203;18363](https://redirect.github.com/astral-sh/ruff/pull/18363),[#&#8203;18093](https://redirect.github.com/astral-sh/ruff/pull/18093)) - \[`refurb`] Add coverage of `set` and `frozenset` calls (`FURB171`) ([#&#8203;18035](https://redirect.github.com/astral-sh/ruff/pull/18035)) - \[`refurb`] Mark `FURB180` fix unsafe when class has bases ([#&#8203;18149](https://redirect.github.com/astral-sh/ruff/pull/18149)) ##### Bug fixes - \[`perflint`] Fix missing parentheses for lambda and ternary conditions (`PERF401`, `PERF403`) ([#&#8203;18412](https://redirect.github.com/astral-sh/ruff/pull/18412)) - \[`pyupgrade`] Apply `UP035` only on py313+ for `get_type_hints()` ([#&#8203;18476](https://redirect.github.com/astral-sh/ruff/pull/18476)) - \[`pyupgrade`] Make fix unsafe if it deletes comments (`UP004`,`UP050`) ([#&#8203;18393](https://redirect.github.com/astral-sh/ruff/pull/18393), [#&#8203;18390](https://redirect.github.com/astral-sh/ruff/pull/18390)) ##### Rule changes - \[`fastapi`] Avoid false positive for class dependencies (`FAST003`) ([#&#8203;18271](https://redirect.github.com/astral-sh/ruff/pull/18271)) ##### Documentation - Update editor setup docs for Neovim and Vim ([#&#8203;18324](https://redirect.github.com/astral-sh/ruff/pull/18324)) ##### Other changes - Support Python 3.14 template strings (t-strings) in formatter and parser ([#&#8203;17851](https://redirect.github.com/astral-sh/ruff/pull/17851)) #### Contributors - [@&#8203;AlexWaygood](https://redirect.github.com/AlexWaygood) - [@&#8203;BurntSushi](https://redirect.github.com/BurntSushi) - [@&#8203;InSyncWithFoo](https://redirect.github.com/InSyncWithFoo) - [@&#8203;Lee-W](https://redirect.github.com/Lee-W) - [@&#8203;MatthewMckee4](https://redirect.github.com/MatthewMckee4) - [@&#8203;MichaReiser](https://redirect.github.com/MichaReiser) - [@&#8203;Viicos](https://redirect.github.com/Viicos) - [@&#8203;abhijeetbodas2001](https://redirect.github.com/abhijeetbodas2001) - [@&#8203;carljm](https://redirect.github.com/carljm) - [@&#8203;chirizxc](https://redirect.github.com/chirizxc) - [@&#8203;dcreager](https://redirect.github.com/dcreager) - [@&#8203;dhruvmanila](https://redirect.github.com/dhruvmanila) - [@&#8203;dylwil3](https://redirect.github.com/dylwil3) - [@&#8203;github-actions](https://redirect.github.com/github-actions) - [@&#8203;ibraheemdev](https://redirect.github.com/ibraheemdev) - [@&#8203;lipefree](https://redirect.github.com/lipefree) - [@&#8203;mtshiba](https://redirect.github.com/mtshiba) - [@&#8203;naslundx](https://redirect.github.com/naslundx) - [@&#8203;ntBre](https://redirect.github.com/ntBre) - [@&#8203;otakutyrant](https://redirect.github.com/otakutyrant) - [@&#8203;renovate](https://redirect.github.com/renovate) - [@&#8203;robsdedude](https://redirect.github.com/robsdedude) - [@&#8203;sharkdp](https://redirect.github.com/sharkdp) - [@&#8203;twentyone212121](https://redirect.github.com/twentyone212121) - [@&#8203;zanieb](https://redirect.github.com/zanieb) #### Install ruff 0.11.13 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-installer.sh | sh ``` ##### Install prebuilt binaries via powershell script ```sh powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-installer.ps1 | iex" ``` #### Download ruff 0.11.13 | File | Platform | Checksum | |--------|----------|----------| | [ruff-aarch64-apple-darwin.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.13/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.11.12`](https://redirect.github.com/astral-sh/ruff/releases/tag/0.11.12) [Compare Source](https://redirect.github.com/astral-sh/ruff/compare/0.11.11...0.11.12) #### Release Notes ##### Preview features - \[`airflow`] Revise fix titles (`AIR3`) ([#&#8203;18215](https://redirect.github.com/astral-sh/ruff/pull/18215)) - \[`pylint`] Implement `missing-maxsplit-arg` (`PLC0207`) ([#&#8203;17454](https://redirect.github.com/astral-sh/ruff/pull/17454)) - \[`pyupgrade`] New rule `UP050` (`useless-class-metaclass-type`) ([#&#8203;18334](https://redirect.github.com/astral-sh/ruff/pull/18334)) - \[`flake8-use-pathlib`] Replace `os.symlink` with `Path.symlink_to` (`PTH211`) ([#&#8203;18337](https://redirect.github.com/astral-sh/ruff/pull/18337)) ##### Bug fixes - \[`flake8-bugbear`] Ignore `__debug__` attribute in `B010` ([#&#8203;18357](https://redirect.github.com/astral-sh/ruff/pull/18357)) - \[`flake8-async`] Fix `anyio.sleep` argument name (`ASYNC115`, `ASYNC116`) ([#&#8203;18262](https://redirect.github.com/astral-sh/ruff/pull/18262)) - \[`refurb`] Fix `FURB129` autofix generating invalid syntax ([#&#8203;18235](https://redirect.github.com/astral-sh/ruff/pull/18235)) ##### Rule changes - \[`flake8-implicit-str-concat`] Add autofix for `ISC003` ([#&#8203;18256](https://redirect.github.com/astral-sh/ruff/pull/18256)) - \[`pycodestyle`] Improve the diagnostic message for `E712` ([#&#8203;18328](https://redirect.github.com/astral-sh/ruff/pull/18328)) - \[`flake8-2020`] Fix diagnostic message for `!=` comparisons (`YTT201`) ([#&#8203;18293](https://redirect.github.com/astral-sh/ruff/pull/18293)) - \[`pyupgrade`] Make fix unsafe if it deletes comments (`UP010`) ([#&#8203;18291](https://redirect.github.com/astral-sh/ruff/pull/18291)) ##### Documentation - Simplify rules table to improve readability ([#&#8203;18297](https://redirect.github.com/astral-sh/ruff/pull/18297)) - Update editor integrations link in README ([#&#8203;17977](https://redirect.github.com/astral-sh/ruff/pull/17977)) - \[`flake8-bugbear`] Add fix safety section (`B006`) ([#&#8203;17652](https://redirect.github.com/astral-sh/ruff/pull/17652)) #### Contributors - [@&#8203;AlexWaygood](https://redirect.github.com/AlexWaygood) - [@&#8203;CodeMan62](https://redirect.github.com/CodeMan62) - [@&#8203;InSyncWithFoo](https://redirect.github.com/InSyncWithFoo) - [@&#8203;Kalmaegi](https://redirect.github.com/Kalmaegi) - [@&#8203;LaBatata101](https://redirect.github.com/LaBatata101) - [@&#8203;Lee-W](https://redirect.github.com/Lee-W) - [@&#8203;MaddyGuthridge](https://redirect.github.com/MaddyGuthridge) - [@&#8203;MatthewMckee4](https://redirect.github.com/MatthewMckee4) - [@&#8203;MichaReiser](https://redirect.github.com/MichaReiser) - [@&#8203;Vasanth-96](https://redirect.github.com/Vasanth-96) - [@&#8203;carljm](https://redirect.github.com/carljm) - [@&#8203;charliermarsh](https://redirect.github.com/charliermarsh) - [@&#8203;chirizxc](https://redirect.github.com/chirizxc) - [@&#8203;dcreager](https://redirect.github.com/dcreager) - [@&#8203;dhruvmanila](https://redirect.github.com/dhruvmanila) - [@&#8203;dsherret](https://redirect.github.com/dsherret) - [@&#8203;dylwil3](https://redirect.github.com/dylwil3) - [@&#8203;felixscherz](https://redirect.github.com/felixscherz) - [@&#8203;fennr](https://redirect.github.com/fennr) - [@&#8203;j178](https://redirect.github.com/j178) - [@&#8203;lipefree](https://redirect.github.com/lipefree) - [@&#8203;maxmynter](https://redirect.github.com/maxmynter) - [@&#8203;ntBre](https://redirect.github.com/ntBre) - [@&#8203;otakutyrant](https://redirect.github.com/otakutyrant) - [@&#8203;renovate](https://redirect.github.com/renovate) - [@&#8203;sharkdp](https://redirect.github.com/sharkdp) - [@&#8203;thejchap](https://redirect.github.com/thejchap) - [@&#8203;vjurczenia](https://redirect.github.com/vjurczenia) #### Install ruff 0.11.12 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.11.12/ruff-installer.sh | sh ``` ##### Install prebuilt binaries via powershell script ```sh powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.11.12/ruff-installer.ps1 | iex" ``` #### Download ruff 0.11.12 | File | Platform | Checksum | |--------|----------|----------| | [ruff-aarch64-apple-darwin.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://redirect.github.com/astral-sh/ruff/releases/download/0.11.12/ruff-x86_64-

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Ruff 0.12.10 update was closed unmerged after CI failures; Renovate said it would skip that version and retry with a newer release.
qwen/qwen3.6-35b-a3b — closed stale Dependency update PR for ruff to v0.12.10 closed without merging due to failing CI checks. Renovate will ignore this update and open a new PR for the next version.

Update history

Date Change
created

Related issues

Issue Project State Summary Similarity
#71 build(deps): update dependency ruff to ~=0.9.3 - autoclosed craft-grammar closed Renovate PR to bump ruff from ~=0.7.0 to ~=0.9.3 was closed unmerged (autoclosed, 0 comments). The dev dependency was later updated to ~=0.11.2 by merged PR #85 (commit 93ac0ac).
86%
#85 build(deps): update dependency ruff to ~=0.11.2 craft-grammar merged Merged PR #85 as commit 93ac0ac, updating Ruff from ~=0.7.0 to ~=0.11.2.
84%
#43 build(deps): update dependency ruff to ~=0.6.1 - autoclosed craft-grammar closed Autoclosed unmerged after #41 already applied the Ruff 0.6.1 update in commit 2f07089.
84%
#41 build(deps): update to ruff 0.6.1 craft-grammar merged Renovate-style dependency bump PR updating the Ruff build dependency to 0.6.1 across three files (+4/-4). Approved by 2 reviewers with no unresolved comments and merged into main as commit 2f07089.
81%
#958 build(deps): update bugfixes (main) rockcraft closed Renovate PR #958 proposed Ruff v0.12.12 and .NET runtime-deps 6.0.36, but was closed unmerged after lint/files failures; no full replacement was documented.
80%
#862 build(deps): update bugfixes (hotfix/5.6) - autoclosed craft-application closed Renovate autoclosed the unmerged hotfix/5.6 update for Ruff v0.12.9 and setuptools v80.9.0; no resolving commit was merged.
79%
#935 build(deps): update bugfixes (main) rockcraft closed Closed unmerged: the .NET docs-test bump was rejected as brittle; the Ruff v0.12.11 update was split and merged in #434 (cd7c68c2).
77%
#317 build(deps): update bugfixes (main) craft-store merged Renovate dependency PR merged via commit 9752ca4: ruff-pre-commit v0.12.10→v0.12.12, coverage 7.10.4→7.10.6, pytest 8.4.1→8.4.2; all CI checks passed.
77%
#490 build(deps): update bugfixes (main) craft-cli merged Merged Renovate dependency update bumping ruff-pre-commit to v0.16.10 and coverage to 7.16.2.
77%
#406 build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.11.13 - autoclosed starbase closed Renovate's unmerged ruff-pre-commit v0.11.13 bump was autoclosed; PR #407 later merged v0.12.0 directly (commit c576d42), superseding it.
77%