ruff/changelogs/0.13.x.md

14 KiB

Changelog 0.13.x

0.13.0

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`

Bug fixes

  • `pyupgrade`
  • `ruff`

Server

  • Add support for using uv as an alternative formatter backend (#19665)

Documentation

  • `pep8-naming`

0.13.1

Released on 2025-09-18.

Preview features

  • `flake8-simplify`
  • `flake8-use-pathlib`
  • `flake8-use-pathlib`
  • `flake8-use-pathlib`
  • `pycodestyle`
  • `refurb`

Bug fixes

  • Handle t-strings for token-based rules and suppression comments (#20357)
  • `flake8-bandit`
  • `flake8-simplify`
  • `flynt`
  • `pyupgrade`
  • `pyupgrade`
  • `ruff`

Rule changes

  • `RUF102`
  • `flake8-bugbear`
  • `ruff`

CLI

  • Add fixes to output-format=sarif (#20300)
  • Treat panics as fatal diagnostics, sort panics last (#20258)

Documentation

  • `ruff`
  • 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

0.13.2

Released on 2025-09-25.

Preview features

  • `flake8-async`
  • `flake8-bugbear`
  • `flake8-bultins`
  • `ruff`
  • Include .pyw files by default when linting and formatting (#20458)

Bug fixes

  • Deduplicate input paths (#20105)
  • `flake8-comprehensions`
  • `flake8-pyi`
  • `flake8-simplify`
  • `pyupgrade`
  • `ruff`
  • `ruff`

Documentation

  • Add 'Finding ways to help' to CONTRIBUTING.md (#20567)
  • Update import path to ruff-wasm-web (#20539)
  • `flake8-bandit`

Other changes

  • `playground`
  • `playground`

Contributors

0.13.3

Released on 2025-10-02.

Preview features

  • Display diffs for ruff format --check and add support for different output formats (#20443)
  • `pyflakes`
  • `ruff`

Bug fixes

  • `cli`
  • `pylint`
  • `pylint`
  • `pyupgrade`

Rule changes

  • `flake8-simplify`

Documentation

  • Add the The Basics title back to CONTRIBUTING.md (#20624)
  • Fixed documentation for try_consider_else (#20587)
  • `isort`
  • `pylint`

Other changes

  • `playground`

Contributors