Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Sep 13, 2025

Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.

This PR contains the following updates:

Package Change Age Confidence
ruff (source, changelog) ==0.12.11 -> ==0.13.1 age confidence

Release Notes

astral-sh/ruff (ruff)

v0.13.1

Compare Source

Released on 2025-09-18.

Preview features
  • [flake8-simplify] Detect unnecessary None default for additional key expression types (SIM910) (#​20343)
  • [flake8-use-pathlib] Add fix for PTH123 (#​20169)
  • [flake8-use-pathlib] Fix PTH101, PTH104, PTH105, PTH121 fixes (#​20143)
  • [flake8-use-pathlib] Make PTH111 fix unsafe because it can change behavior (#​20215)
  • [pycodestyle] Fix E301 to only trigger for functions immediately within a class (#​19768)
  • [refurb] Mark single-item-membership-test fix as always unsafe (FURB171) (#​20279)
Bug fixes
  • Handle t-strings for token-based rules and suppression comments (#​20357)
  • [flake8-bandit] Fix truthiness: dict-only ** displays not truthy for shell (S602, S604, S609) (#​20177)
  • [flake8-simplify] Fix diagnostic to show correct method name for str.rsplit calls (SIM905) (#​20459)
  • [flynt] Use triple quotes for joined raw strings with newlines (FLY002) (#​20197)
  • [pyupgrade] Fix false positive when class name is shadowed by local variable (UP008) (#​20427)
  • [pyupgrade] Prevent infinite loop with I002 and UP026 (#​20327)
  • [ruff] Recognize t-strings, generators, and lambdas in invalid-index-type (RUF016) (#​20213)
Rule changes
  • [RUF102] Respect rule redirects in invalid rule code detection (#​20245)
  • [flake8-bugbear] Mark the fix for unreliable-callable-check as always unsafe (B004) (#​20318)
  • [ruff] Allow dataclass attribute value instantiation from nested frozen dataclass (RUF009) (#​20352)
CLI
  • Add fixes to output-format=sarif (#​20300)
  • Treat panics as fatal diagnostics, sort panics last (#​20258)
Documentation
  • [ruff] Add analyze.string-imports-min-dots to settings (#​20375)
  • Update README.md with Albumentations new repository URL (#​20415)
Other changes
  • Bump MSRV to Rust 1.88 (#​20470)
  • Enable inline noqa for multiline strings in playground (#​20442)
Contributors

v0.13.0

Compare Source

Check out the blog post for a migration
guide and overview of the changes!

Breaking changes
  • Several rules can now add from __future__ import annotations automatically

    TC001, TC002, TC003, RUF013, and UP037 now add from __future__ import annotations as part of their fixes when the
    lint.future-annotations setting is enabled. This allows the rules to move
    more imports into TYPE_CHECKING blocks (TC001, TC002, and TC003),
    use PEP 604 union syntax on Python versions before 3.10 (RUF013), and
    unquote more annotations (UP037).

  • Full module paths are now used to verify first-party modules

    Ruff now checks that the full path to a module exists on disk before
    categorizing it as a first-party import. This change makes first-party
    import detection more accurate, helping to avoid false positives on local
    directories with the same name as a third-party dependency, for example. See
    the FAQ
    section
    on import categorization for more details.

  • Deprecated rules must now be selected by exact rule code

    Ruff will no longer activate deprecated rules selected by their group name
    or prefix. As noted below, the two remaining deprecated rules were also
    removed in this release, so this won't affect any current rules, but it will
    still affect any deprecations in the future.

  • The deprecated macOS configuration directory fallback has been removed

    Ruff will no longer look for a user-level configuration file at
    ~/Library/Application Support/ruff/ruff.toml on macOS. This feature was
    deprecated in v0.5 in favor of using the XDG
    specification

    (usually resolving to ~/.config/ruff/ruff.toml), like on Linux. The
    fallback and accompanying deprecation warning have now been removed.

Removed Rules

The following rules have been removed:

Stabilization

The following rules have been stabilized and are no longer in preview:

The following behaviors have been stabilized:

Preview features
  • [pyupgrade] Enable UP043 in stub files (#​20027)
Bug fixes
  • [pyupgrade] Apply UP008 only when the __class__ cell exists (#​19424)
  • [ruff] Fix empty f-string detection in in-empty-collection (RUF060) (#​20249)
Server
  • Add support for using uv as an alternative formatter backend (#​19665)
Documentation
  • [pep8-naming] Fix formatting of __all__ (N816) (#​20301)

v0.12.12

Compare Source

Release Notes
Preview features
  • Show fixes by default (#​19919)
  • [airflow] Convert DatasetOrTimeSchedule(datasets=...) to AssetOrTimeSchedule(assets=...) (AIR311) (#​20202)
  • [airflow] Improve the AIR002 error message (#​20173)
  • [airflow] Move airflow.operators.postgres_operator.Mapping from AIR302 to AIR301 (#​20172)
  • [flake8-async] Implement blocking-input rule (ASYNC250) (#​20122)
  • [flake8-use-pathlib] Make PTH119 and PTH120 fixes unsafe because they can change behavior (#​20118)
  • [pylint] Add U+061C to PLE2502 (#​20106)
  • [ruff] Fix false negative for empty f-strings in deque calls (RUF037) (#​20109)
Bug fixes
  • Less confidently mark f-strings as empty when inferring truthiness (#​20152)
  • [fastapi] Fix false positive for paths with spaces around parameters (FAST003) (#​20077)
  • [flake8-comprehensions] Skip C417 when lambda contains yield/yield from (#​20201)
  • [perflint] Handle tuples in dictionary comprehensions (PERF403) (#​19934)
Rule changes
  • [pycodestyle] Preserve return type annotation for ParamSpec (E731) (#​20108)
Documentation
Contributors
Install ruff 0.12.12
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-installer.ps1 | iex"
Download ruff 0.12.12
File Platform Checksum
ruff-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
ruff-x86_64-apple-darwin.tar.gz Intel macOS checksum
ruff-aarch64-pc-windows-msvc.zip ARM64 Windows checksum
ruff-i686-pc-windows-msvc.zip x86 Windows checksum
ruff-x86_64-pc-windows-msvc.zip x64 Windows checksum
ruff-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
ruff-i686-unknown-linux-gnu.tar.gz x86 Linux checksum
ruff-powerpc64-unknown-linux-gnu.tar.gz PPC64 Linux checksum
ruff-powerpc64le-unknown-linux-gnu.tar.gz PPC64LE Linux checksum
ruff-riscv64gc-unknown-linux-gnu.tar.gz RISCV Linux checksum
ruff-s390x-unknown-linux-gnu.tar.gz S390x Linux checksum
ruff-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum
ruff-armv7-unknown-linux-gnueabihf.tar.gz ARMv7 Linux checksum
ruff-aarch64-unknown-linux-musl.tar.gz ARM64 MUSL Linux checksum
ruff-i686-unknown-linux-musl.tar.gz x86 MUSL Linux checksum
ruff-x86_64-unknown-linux-musl.tar.gz x64 MUSL Linux checksum
ruff-arm-unknown-linux-musleabihf.tar.gz ARMv6 MUSL Linux (Hardfloat) checksum
ruff-armv7-unknown-linux-musleabihf.tar.gz ARMv7 MUSL Linux checksum

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/minorpatch-pip-dependencies branch from 494d751 to dad8344 Compare September 18, 2025 22:35
@renovate renovate bot changed the title chore(deps): update dependency ruff to v0.13.0 chore(deps): update dependency ruff to v0.13.1 Sep 18, 2025
@rchl rchl merged commit 3c76c70 into main Sep 23, 2025
@rchl rchl deleted the renovate/minorpatch-pip-dependencies branch September 23, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants