Update dependency ruff to v0.14.9 #18

Open
Renovate wants to merge 1 commit from renovate/ruff-0.x into main
Collaborator

This PR contains the following updates:

Package Change Age Confidence
ruff (source, changelog) ==0.11.12 -> ==0.14.9 age confidence

Release Notes

astral-sh/ruff (ruff)

v0.14.9

Compare Source

Released on 2025-12-11.

Preview features
  • [ruff] New RUF100 diagnostics for unused range suppressions (#​21783)
  • [pylint] Detect subclasses of builtin exceptions (PLW0133) (#​21382)
Bug fixes
  • Fix comment placement in lambda parameters (#​21868)
  • Skip over trivia tokens after re-lexing (#​21895)
  • [flake8-bandit] Fix false positive when using non-standard CSafeLoader path (S506). (#​21830)
  • [flake8-bugbear] Accept immutable slice default arguments (B008) (#​21823)
Rule changes
  • [pydocstyle] Suppress D417 for parameters with Unpack annotations (#​21816)
Performance
  • Use memchr for computing line indexes (#​21838)
Documentation
  • Document *.pyw is included by default in preview (#​21885)
  • Document range suppressions, reorganize suppression docs (#​21884)
  • Update mkdocs-material to 9.7.0 (Insiders now free) (#​21797)
Contributors

v0.14.8

Compare Source

Released on 2025-12-04.

Preview features
  • [flake8-bugbear] Catch yield expressions within other statements (B901) (#​21200)
  • [flake8-use-pathlib] Mark fixes unsafe for return type changes (PTH104, PTH105, PTH109, PTH115) (#​21440)
Bug fixes
  • Fix syntax error false positives for await outside functions (#​21763)
  • [flake8-simplify] Fix truthiness assumption for non-iterable arguments in tuple/list/set calls (SIM222, SIM223) (#​21479)
Documentation
  • Suggest using --output-file option in GitLab integration (#​21706)
Other changes
  • [syntax-error] Default type parameter followed by non-default type parameter (#​21657)
Contributors

v0.14.7

Compare Source

Released on 2025-11-28.

Preview features
  • [flake8-bandit] Handle string literal bindings in suspicious-url-open-usage (S310) (#​21469)
  • [pylint] Fix PLR1708 false positives on nested functions (#​21177)
  • [pylint] Fix suppression for empty dict without tuple key annotation (PLE1141) (#​21290)
  • [ruff] Add rule RUF066 to detect unnecessary class properties (#​21535)
  • [ruff] Catch more dummy variable uses (RUF052) (#​19799)
Bug fixes
  • [server] Set severity for non-rule diagnostics (#​21559)
  • [flake8-implicit-str-concat] Avoid invalid fix in (ISC003) (#​21517)
  • [parser] Fix panic when parsing IPython escape command expressions (#​21480)
CLI
  • Show partial fixability indicator in statistics output (#​21513)
Contributors

v0.14.6

Compare Source

Released on 2025-11-21.

Preview features
  • [flake8-bandit] Support new PySNMP API paths (S508, S509) (#​21374)
Bug fixes
  • Adjust own-line comment placement between branches (#​21185)
  • Avoid syntax error when formatting attribute expressions with outer parentheses, parenthesized value, and trailing comment on value (#​20418)
  • Fix panic when formatting comments in unary expressions (#​21501)
  • Respect fmt: skip for compound statements on a single line (#​20633)
  • [refurb] Fix FURB103 autofix (#​21454)
  • [ruff] Fix false positive for complex conversion specifiers in logging-eager-conversion (RUF065) (#​21464)
Rule changes
  • [ruff] Avoid false positive on ClassVar reassignment (RUF012) (#​21478)
CLI
  • Render hyperlinks for lint errors (#​21514)
  • Add a ruff analyze option to skip over imports in TYPE_CHECKING blocks (#​21472)
Documentation
  • Limit eglot-format hook to eglot-managed Python buffers (#​21459)
  • Mention force-exclude in "Configuration > Python file discovery" (#​21500)
Contributors

v0.14.5

Compare Source

Released on 2025-11-13.

Preview features
  • [flake8-simplify] Apply SIM113 when index variable is of type int (#​21395)
  • [pydoclint] Fix false positive when Sphinx directives follow a "Raises" section (DOC502) (#​20535)
  • [pydoclint] Support NumPy-style comma-separated parameters (DOC102) (#​20972)
  • [refurb] Auto-fix annotated assignments (FURB101) (#​21278)
  • [ruff] Ignore str() when not used for simple conversion (RUF065) (#​21330)
Bug fixes
  • Fix syntax error false positive on alternative match patterns (#​21362)
  • [flake8-simplify] Fix false positive for iterable initializers with generator arguments (SIM222) (#​21187)
  • [pyupgrade] Fix false positive on relative imports from local .builtins module (UP029) (#​21309)
  • [pyupgrade] Consistently set the deprecated tag (UP035) (#​21396)
Rule changes
  • [refurb] Detect empty f-strings (FURB105) (#​21348)
CLI
  • Add option to provide a reason to --add-noqa (#​21294)
  • Add upstream linter URL to ruff linter --output-format=json (#​21316)
  • Add color to --help (#​21337)
Documentation
  • Add a new "Opening a PR" section to the contribution guide (#​21298)
  • Added the PyScripter IDE to the list of "Who is using Ruff?" (#​21402)
  • Update PyCharm setup instructions (#​21409)
  • [flake8-annotations] Add link to allow-star-arg-any option (ANN401) (#​21326)
Other changes
  • [configuration] Improve error message when line-length exceeds u16::MAX (#​21329)
Contributors

v0.14.4

Compare Source

Released on 2025-11-06.

Preview features
  • [formatter] Allow newlines after function headers without docstrings (#​21110)
  • [formatter] Avoid extra parentheses for long match patterns with as captures (#​21176)
  • [refurb] Expand fix safety for keyword arguments and Decimals (FURB164) (#​21259)
  • [refurb] Preserve argument ordering in autofix (FURB103) (#​20790)
Bug fixes
  • [server] Fix missing diagnostics for notebooks (#​21156)
  • [flake8-bugbear] Ignore non-NFKC attribute names in B009 and B010 (#​21131)
  • [refurb] Fix false negative for underscores before sign in Decimal constructor (FURB157) (#​21190)
  • [ruff] Fix false positives on starred arguments (RUF057) (#​21256)
Rule changes
  • [airflow] extend deprecated argument concurrency in airflow..DAG (AIR301) (#​21220)
Documentation
  • Improve extend docs (#​21135)
  • [flake8-comprehensions] Fix typo in C416 documentation (#​21184)
  • Revise Ruff setup instructions for Zed editor (#​20935)
Other changes
  • Make ruff analyze graph work with jupyter notebooks (#​21161)
Contributors

v0.14.3

Compare Source

Released on 2025-10-30.

Preview features
  • Respect --output-format with --watch (#​21097)
  • [pydoclint] Fix false positive on explicit exception re-raising (DOC501, DOC502) (#​21011)
  • [pyflakes] Revert to stable behavior if imports for module lie in alternate branches for F401 (#​20878)
  • [pylint] Implement stop-iteration-return (PLR1708) (#​20733)
  • [ruff] Add support for additional eager conversion patterns (RUF065) (#​20657)
Bug fixes
  • Fix finding keyword range for clause header after statement ending with semicolon (#​21067)
  • Fix syntax error false positive on nested alternative patterns (#​21104)
  • [ISC001] Fix panic when string literals are unclosed (#​21034)
  • [flake8-django] Apply DJ001 to annotated fields (#​20907)
  • [flake8-pyi] Fix PYI034 to not trigger on metaclasses (PYI034) (#​20881)
  • [flake8-type-checking] Fix TC003 false positive with future-annotations (#​21125)
  • [pyflakes] Fix false positive for __class__ in lambda expressions within class definitions (F821) (#​20564)
  • [pyupgrade] Fix false positive for TypeVar with default on Python <3.13 (UP046,UP047) (#​21045)
Rule changes
  • Add missing docstring sections to the numpy list (#​20931)
  • [airflow] Extend airflow.models..Param check (AIR311) (#​21043)
  • [airflow] Warn that airflow....DAG.create_dagrun has been removed (AIR301) (#​21093)
  • [refurb] Preserve digit separators in Decimal constructor (FURB157) (#​20588)
Server
  • Avoid sending an unnecessary "clear diagnostics" message for clients supporting pull diagnostics (#​21105)
Documentation
  • [flake8-bandit] Fix correct example for S308 (#​21128)
Other changes
  • Clearer error message when line-length goes beyond threshold (#​21072)
Contributors

v0.14.2

Compare Source

Released on 2025-10-23.

Preview features
  • [flake8-gettext] Resolve qualified names and built-in bindings (INT001, INT002, INT003) (#​19045)
Bug fixes
  • Avoid reusing nested, interpolated quotes before Python 3.12 (#​20930)
  • Catch syntax errors in nested interpolations before Python 3.12 (#​20949)
  • [fastapi] Handle ellipsis defaults in FAST002 autofix (#​20810)
  • [flake8-simplify] Skip SIM911 when unknown arguments are present (#​20697)
  • [pyupgrade] Always parenthesize assignment expressions in fix for f-string (UP032) (#​21003)
  • [pyupgrade] Fix UP032 conversion for decimal ints with underscores (#​21022)
  • [fastapi] Skip autofix for keyword and __debug__ path params (FAST003) (#​20960)
Rule changes
  • [flake8-bugbear] Skip B905 and B912 for fewer than two iterables and no starred arguments (#​20998)
  • [ruff] Use DiagnosticTag for more pyflakes and pandas rules (#​20801)
CLI
  • Improve JSON output from ruff rule (#​20168)
Documentation
Other changes
  • [syntax-errors] Name is parameter and global (#​20426)
  • [syntax-errors] Alternative match patterns bind different names (#​20682)
Contributors

v0.14.1

Compare Source

Released on 2025-10-16.

Preview features
  • [formatter] Remove parentheses around multiple exception types on Python 3.14+ (#​20768)
  • [flake8-bugbear] Omit annotation in preview fix for B006 (#​20877)
  • [flake8-logging-format] Avoid dropping implicitly concatenated pieces in the G004 fix (#​20793)
  • [pydoclint] Implement docstring-extraneous-parameter (DOC102) (#​20376)
  • [pyupgrade] Extend UP019 to detect typing_extensions.Text (UP019) (#​20825)
  • [pyupgrade] Fix false negative for TypeVar with default argument in non-pep695-generic-class (UP046) (#​20660)
Bug fixes
  • Fix false negatives in Truthiness::from_expr for lambdas, generators, and f-strings (#​20704)
  • Fix syntax error false positives for escapes and quotes in f-strings (#​20867)
  • Fix syntax error false positives on parenthesized context managers (#​20846)
  • [fastapi] Fix false positives for path parameters that FastAPI doesn't recognize (FAST003) (#​20687)
  • [flake8-pyi] Fix operator precedence by adding parentheses when needed (PYI061) (#​20508)
  • [ruff] Suppress diagnostic for f-string interpolations with debug text (RUF010) (#​20525)
Rule changes
  • [airflow] Add warning to airflow.datasets.DatasetEvent usage (AIR301) (#​20551)
  • [flake8-bugbear] Mark B905 and B912 fixes as unsafe (#​20695)
  • Use DiagnosticTag for more rules - changes display in editors (#​20758,#​20734)
Documentation
  • Update Python compatibility from 3.13 to 3.14 in README.md (#​20852)
  • Update lint.flake8-type-checking.quoted-annotations docs (#​20765)
  • Update setup instructions for Zed 0.208.0+ (#​20902)
  • [flake8-datetimez] Clarify docs for several rules (#​20778)
  • Fix typo in RUF015 description (#​20873)
Other changes
  • Reduce binary size (#​20863)
  • Improved error recovery for unclosed strings (including f- and t-strings) (#​20848)
Contributors

v0.14.0

Compare Source

Released on 2025-10-07.

Breaking changes
  • Update default and latest Python versions for 3.14 (#​20725)
Preview features
  • [flake8-bugbear] Include certain guaranteed-mutable expressions: tuples, generators, and assignment expressions (B006) (#​20024)
  • [refurb] Add fixes for FURB101 and FURB103 (#​20520)
  • [ruff] Extend FA102 with listed PEP 585-compatible APIs (#​20659)
Bug fixes
  • [flake8-annotations] Fix return type annotations to handle shadowed builtin symbols (ANN201, ANN202, ANN204, ANN205, ANN206) (#​20612)
  • [flynt] Fix f-string quoting for mixed quote joiners (FLY002) (#​20662)
  • [isort] Fix inserting required imports before future imports (I002) (#​20676)
  • [ruff] Handle argfile expansion errors gracefully (#​20691)
  • [ruff] Skip RUF051 if else/elif block is present (#​20705)
  • [ruff] Improve handling of intermixed comments inside from-imports (#​20561)
Documentation
  • [flake8-comprehensions] Clarify fix safety documentation (C413) (#​20640)
Contributors

v0.13.3

Compare Source

Release Notes

Released on 2025-10-02.

Preview features
  • Display diffs for ruff format --check and add support for different output formats (#​20443)
  • [pyflakes] Handle some common submodule import situations for unused-import (F401) (#​20200)
  • [ruff] Do not flag %r + repr() combinations (RUF065) (#​20600)
Bug fixes
  • [cli] Add conflict between --add-noqa and --diff options (#​20642)
  • [pylint] Exempt required imports from PLR0402 (#​20381)
  • [pylint] Fix missing max-nested-blocks in settings display (#​20574)
  • [pyupgrade] Prevent infinite loop with I002 and UP026 (#​20634)
Rule changes
  • [flake8-simplify] Improve help message clarity (SIM105) (#​20548)
Documentation
  • Add the The Basics title back to CONTRIBUTING.md (#​20624)
  • Fixed documentation for try_consider_else (#​20587)
  • [isort] Clarify dependency between order-by-type and case-sensitive settings (#​20559)
  • [pylint] Clarify fix safety to include left-hand hashability (PLR6201) (#​20518)
Other changes
  • [playground] Fix quick fixes for empty ranges in playground (#​20599)
Contributors

Install ruff 0.13.3

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-installer.ps1 | iex"

Download ruff 0.13.3

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

v0.13.2

Compare Source

Release Notes

Released on 2025-09-25.

Preview features
  • [flake8-async] Implement blocking-path-method (ASYNC240) (#​20264)
  • [flake8-bugbear] Implement map-without-explicit-strict (B912) (#​20429)
  • [flake8-bultins] Detect class-scope builtin shadowing in decorators, default args, and attribute initializers (A003) (#​20178)
  • [ruff] Implement logging-eager-conversion (RUF065) (#​19942)
  • Include .pyw files by default when linting and formatting (#​20458)
Bug fixes
  • Deduplicate input paths (#​20105)
  • [flake8-comprehensions] Preserve trailing commas for single-element lists (C409) (#​19571)
  • [flake8-pyi] Avoid syntax error from conflict with PIE790 (PYI021) (#​20010)
  • [flake8-simplify] Correct fix for positive maxsplit without separator (SIM905) (#​20056)
  • [pyupgrade] Fix UP008 not to apply when __class__ is a local variable (#​20497)
  • [ruff] Fix B004 to skip invalid hasattr/getattr calls (#​20486)
  • [ruff] Replace -nan with nan when using the value to construct a Decimal (FURB164 ) (#​20391)
Documentation
  • Add 'Finding ways to help' to CONTRIBUTING.md (#​20567)
  • Update import path to ruff-wasm-web (#​20539)
  • [flake8-bandit] Clarify the supported hashing functions (S324) (#​20534)
Other changes
  • [playground] Allow hover quick fixes to appear for overlapping diagnostics (#​20527)
  • [playground] Fix non‑BMP code point handling in quick fixes and markers (#​20526)
Contributors

Install ruff 0.13.2

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-installer.ps1 | iex"

Download ruff 0.13.2

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

v0.13.1

Compare Source

Release Notes

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

Install ruff 0.13.1

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-installer.ps1 | iex"

Download ruff 0.13.1

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

v0.13.0

Compare Source

Release Notes

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)

Contributors

Install ruff 0.13.0

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-installer.ps1 | iex"

Download ruff 0.13.0

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

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

v0.12.11

Compare Source

Release Notes

Preview features
  • [airflow] Extend AIR311 and AIR312 rules (#​20082)
  • [airflow] Replace wrong path airflow.io.storage with airflow.io.store (AIR311) (#​20081)
  • [flake8-async] Implement blocking-http-call-httpx-in-async-function (ASYNC212) (#​20091)
  • [flake8-logging-format] Add auto-fix for f-string logging calls (G004) (#​19303)
  • [flake8-use-pathlib] Add autofix for PTH211 (#​20009)
  • [flake8-use-pathlib] Make PTH100 fix unsafe because it can change behavior (#​20100)
Bug fixes
  • [pyflakes, pylint] Fix false positives caused by __class__ cell handling (F841, PLE0117) (#​20048)
  • [pyflakes] Fix allowed-unused-imports matching for top-level modules (F401) (#​20115)
  • [ruff] Fix false positive for t-strings in default-factory-kwarg (RUF026) (#​20032)
  • [ruff] Preserve relative whitespace in multi-line expressions (RUF033) (#​19647)
Rule changes
  • [ruff] Handle empty t-strings in unnecessary-empty-iterable-within-deque-call (RUF037) (#​20045)
Documentation
  • Fix incorrect D413 links in docstrings convention FAQ (#​20089)
  • [flake8-use-pathlib] Update links to the table showing the correspondence between os and pathlib (#​20103)

Contributors

Install ruff 0.12.11

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.11/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.11/ruff-installer.ps1 | iex"

Download ruff 0.12.11

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

v0.12.10

Compare Source

Release Notes

Preview features
  • [flake8-simplify] Implement fix for maxsplit without separator (SIM905) (#​19851)
  • [flake8-use-pathlib] Add fixes for PTH102 and PTH103 (#​19514)
Bug fixes
  • [isort] Handle multiple continuation lines after module docstring (I002) (#​19818)
  • [pyupgrade] Avoid reporting __future__ features as unnecessary when they are used (UP010) (#​19769)
  • [pyupgrade] Handle nested Optionals (UP045) (#​19770)
Rule changes
  • [pycodestyle] Make E731 fix unsafe instead of display-only for class assignments (#​19700)
  • [pyflakes] Add secondary annotation showing previous definition (F811) (#​19900)
Documentation

Contributors

Install ruff 0.12.10

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.10/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.10/ruff-installer.ps1 | iex"

Download ruff 0.12.10

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

v0.12.9

Compare Source

Release Notes

Preview features
  • [airflow] Add check for airflow.secrets.cache.SecretCache (AIR301) (#​17707)
  • [ruff] Offer a safe fix for multi-digit zeros (RUF064) (#​19847)
Bug fixes
  • [flake8-blind-except] Fix BLE001 false-positive on raise ... from None (#​19755)
  • [flake8-comprehensions] Fix false positive for C420 with attribute, subscript, or slice assignment targets (#​19513)
  • [flake8-simplify] Fix handling of U+001C..U+001F whitespace (SIM905) (#​19849)
Rule changes
  • [pylint] Use lowercase hex characters to match the formatter (PLE2513) (#​19808)
Documentation
  • Fix lint.future-annotations link (#​19876)
Other changes
  • Build riscv64 binaries for release (#​19819)

  • Add rule code to error description in GitLab output (#​19896)

  • Improve rendering of the full output format (#​19415)

    Below is an example diff for F401:

    -unused.py:8:19: F401 [*] `pathlib` imported but unused
    +F401 [*] `pathlib` imported but unused
    +  --> unused.py:8:19
        |
      7 | # Unused, _not_ marked as required (due to the alias).
      8 | import pathlib as non_alias
    -   |                   ^^^^^^^^^ F401
    +   |                   ^^^^^^^^^
      9 |
     10 | # Unused, marked as required.
        |
    -   = help: Remove unused import: `pathlib`
    +help: Remove unused import: `pathlib`
    

    For now, the primary difference is the movement of the filename, line number, and column information to a second line in the header. This new representation will allow us to make further additions to Ruff's diagnostics, such as adding sub-diagnostics and multiple annotations to the same snippet.

Contributors

Install ruff 0.12.9

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.9/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.9/ruff-installer.ps1 | iex"

Download ruff 0.12.9

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

v0.12.8

Compare Source

Release Notes

Preview features
  • [flake8-use-pathlib] Expand PTH201 to check all PurePath subclasses (#​19440)
Bug fixes
  • [flake8-blind-except] Change BLE001 to correctly parse exception tuples (#​19747)
  • [flake8-errmsg] Exclude typing.cast from EM101 (#​19656)
  • [flake8-simplify] Fix raw string handling in SIM905 for embedded quotes (#​19591)
  • [flake8-import-conventions] Avoid false positives for NFKC-normalized __debug__ import aliases in ICN001 (#​19411)
  • [isort] Fix syntax error after docstring ending with backslash (I002) (#​19505)
  • [pylint] Mark PLC0207 fixes as unsafe when *args unpacking is present (#​19679)
  • [pyupgrade] Prevent infinite loop with I002 (UP010, UP035) (#​19413)
  • [ruff] Parenthesize generator expressions in f-strings (RUF010) (#​19434)
Rule changes
  • [eradicate] Don't flag pyrefly pragmas as unused code (ERA001) (#​19731)
Documentation
Other changes
  • Include column numbers in GitLab output format (#​19708)
  • Always expand tabs to four spaces in diagnostics (#​19618)
  • Update pre-commit's ruff id (#​19654)

Contributors

Install ruff 0.12.8

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.8/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.8/ruff-installer.ps1 | iex"

Download ruff 0.12.8

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

v0.12.7

Release Notes

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.

0.12.6 Release Notes

Preview features
  • [flake8-commas] Add support for trailing comma checks in type parameter lists (COM812, COM819) (#​19390)
  • [pylint] Implement auto-fix for missing-maxsplit-arg (PLC0207) (#​19387)
  • [ruff] Offer fixes for RUF039 in more cases (#​19065)
Bug fixes
  • Support .pyi files in ruff analyze graph (#​19611)
  • [flake8-pyi] Preserve inline comment in ellipsis removal (PYI013) (#​19399)
  • [perflint] Ignore rule if target is global or nonlocal (PERF401) (#​19539)
  • [pyupgrade] Fix UP030 to avoid modifying double curly braces in format strings (#​19378)
  • [refurb] Ignore decorated functions for FURB118 (#​19339)
  • [refurb] Mark int and bool cases for Decimal.from_float as safe fixes (FURB164) (#​19468)
  • [ruff] Fix RUF033 for named default expressions (#​19115)
Rule changes
  • [flake8-blind-except] Change BLE001 to permit logging.critical(..., exc_info=True) (#​19520)
Performance
  • Add support for specifying minimum dots in detected string imports (#​19538)

Contributors

Install ruff 0.12.7

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.7/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.7/ruff-installer.ps1 | iex"

Download ruff 0.12.7

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

v0.12.5

Compare Source

Release Notes

Preview features
  • [flake8-use-pathlib] Add autofix for PTH101, PTH104, PTH105, PTH121 (#​19404)
  • [ruff] Support byte strings (RUF055) (#​18926)
Bug fixes
  • Fix unreachable panic in parser (#​19183)
  • [flake8-pyi] Skip fix if all Union members are None (PYI016) (#​19416)
  • [perflint] Parenthesize generator expressions (PERF401) (#​19325)
  • [pylint] Handle empty comments after line continuation (PLR2044) (#​19405)
Rule changes
  • [pep8-naming] Fix N802 false positives for CGIHTTPRequestHandler and SimpleHTTPRequestHandler (#​19432)

Contributors

Install ruff 0.12.5

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.5/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.5/ruff-installer.ps1 | iex"

Download ruff 0.12.5

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

v0.12.4

Compare Source

Release Notes

Preview features
  • [flake8-type-checking, pyupgrade, ruff] Add from __future__ import annotations when it would allow new fixes (TC001, TC002, TC003, UP037, RUF013) (#​19100)
  • [flake8-use-pathlib] Add autofix for PTH109 (#​19245)
  • [pylint] Detect indirect pathlib.Path usages for unspecified-encoding (PLW1514) (#​19304)
Bug fixes
  • [flake8-bugbear] Fix B017 false negatives for keyword exception arguments (#​19217)
  • [flake8-use-pathlib] Fix false negative on direct Path() instantiation (PTH210) (#​19388)
  • [flake8-django] Fix DJ008 false positive for abstract models with type-annotated abstract field (#​19221)
  • [isort] Fix I002 import insertion after docstring with multiple string statements (#​19222)
  • [isort] Treat form feed as valid whitespace before a semicolon (#​19343)
  • [pydoclint] Fix SyntaxError from fixes with line continuations (D201, D202) (#​19246)
  • [refurb] FURB164 fix should validate arguments and should usually be marked unsafe (#​19136)
Rule changes
  • [flake8-use-pathlib] Skip single dots for invalid-pathlib-with-suffix (PTH210) on versions >= 3.14 (#​19331)
  • [pep8_naming] Avoid false positives on standard library functions with uppercase names (N802) (#​18907)
  • [pycodestyle] Handle brace escapes for t-strings in logical lines (#​19358)
  • [pylint] Extend invalid string character rules to include t-strings (#​19355)
  • [ruff] Allow strict kwarg when checking for starmap-zip (RUF058) in Python 3.14+ (#​19333)
Documentation

Contributors

Install ruff 0.12.4

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.4/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.4/ruff-installer.ps1 | iex"

Download ruff 0.12.4

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

v0.12.3

Compare Source

Release Notes

Preview features
  • [flake8-bugbear] Support non-context-manager calls in B017 (#​19063)
  • [flake8-use-pathlib] Add autofixes for PTH100, PTH106, PTH107, PTH108, PTH110, PTH111, PTH112, PTH113, PTH114, PTH115, PTH117, PTH119, PTH120 (#​19213)
  • [flake8-use-pathlib] Add autofixes for PTH203, PTH204, PTH205 (#​18922)
Bug fixes
  • [flake8-return] Fix false-positive for variables used inside nested functions in RET504 (#​18433)
  • Treat form feed as valid whitespace before a line continuation (#​19220)
  • [flake8-type-checking] Fix syntax error introduced by fix (TC008) (#​19150)
  • [pyupgrade] Keyword arguments in super should suppress the UP008 fix (#​19131)
Documentation
  • [flake8-pyi] Make example error out-of-the-box (PYI007, PYI008) (#​19103)
  • [flake8-simplify] Make example error out-of-the-box (SIM116) (#​19111)
  • [flake8-type-checking] Make example error out-of-the-box (TC001) (#​19151)
  • [flake8-use-pathlib] Make example error out-of-the-box (PTH210) (#​19189)
  • [pycodestyle] Make example error out-of-the-box (E272) (#​19191)
  • [pycodestyle] Make example not raise unnecessary SyntaxError (E114) (#​19190)
  • [pydoclint] Make example error out-of-the-box (DOC501) (#​19218)
  • [pylint, pyupgrade] Fix syntax errors in examples (PLW1501, UP028) (#​19127)
  • [pylint] Update missing-maxsplit-arg docs and error to suggest proper usage (PLC0207) (#​18949)
  • [flake8-bandit] Make example error out-of-the-box (S412) (#​19241)

Contributors

Install ruff 0.12.3

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.3/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.3/ruff-installer.ps1 | iex"

Download ruff 0.12.3

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

v0.12.2

Compare Source

Release Notes

Preview features
  • [flake8-pyi] Expand Optional[A] to A | None (PYI016) (#​18572)
  • [pyupgrade] Mark UP008 fix safe if no comments are in range (#​18683)
Bug fixes
  • [flake8-comprehensions] Fix C420 to prepend whitespace when needed (#​18616)
  • [perflint] Fix PERF403 panic on attribute or subscription loop variable (#​19042)
  • [pydocstyle] Fix D413 infinite loop for parenthesized docstring (#​18930)
  • [pylint] Fix PLW0108 autofix introducing a syntax error when the lambda's body contains an assignment expression (#​18678)
  • [refurb] Fix false positive on empty tuples (FURB168) (#​19058)
  • [ruff] Allow more field calls from attrs (RUF009) (#​19021)
  • [ruff] Fix syntax error introduced for an empty string followed by a u-prefixed string (UP025) (#​18899)
Rule changes
  • [flake8-executable] Allow uvx in shebang line (EXE003) (#​18967)
  • [pandas] Avoid flagging PD002 if pandas is not imported (#​18963)
  • [pyupgrade] Avoid PEP-604 unions with typing.NamedTuple (UP007, UP045) (#​18682)
Documentation
  • Document link between import-outside-top-level (PLC0415) and lint.flake8-tidy-imports.banned-module-level-imports (#​18733)
  • Fix description of the format.skip-magic-trailing-comma example (#​19095)
  • [airflow] Make AIR302 example error out-of-the-box (#​18988)
  • [airflow] Make AIR312 example error out-of-the-box (#​18989)
  • [flake8-annotations] Make ANN401 example error out-of-the-box (#​18974)
  • [flake8-async] Make ASYNC100 example error out-of-the-box (#​18993)
  • [flake8-async] Make ASYNC105 example error out-of-the-box (#​19002)
  • [flake8-async] Make ASYNC110 example error out-of-the-box (#​18975)
  • [flake8-async] Make ASYNC210 example error out-of-the-box (#​18977)
  • [flake8-async] Make ASYNC220, ASYNC221, and ASYNC222 examples error out-of-the-box (#​18978)
  • [flake8-async] Make ASYNC251 example error out-of-the-box (#​18990)
  • [flake8-bandit] Make S201 example error out-of-the-box (#​19017)
  • [flake8-bandit] Make S604 and S609 examples error out-of-the-box (#​19049)
  • [flake8-bugbear] Make B028 example error out-of-the-box (#​19054)
  • [flake8-bugbear] Make B911 example error out-of-the-box (#​19051)
  • [flake8-datetimez] Make DTZ011 example error out-of-the-box (#​19055)
  • [flake8-datetimez] Make DTZ901 example error out-of-the-box (#​19056)
  • [flake8-pyi] Make PYI032 example error out-of-the-box (#​19061)
  • [flake8-pyi] Make example error out-of-the-box (PYI014, PYI015) (#​19097)
  • [flake8-pyi] Make example error out-of-the-box (PYI042) (#​19101)
  • [flake8-pyi] Make example error out-of-the-box (PYI059) (#​19080)
  • [flake8-pyi] Make example error out-of-the-box (PYI062) (#​19079)
  • [flake8-pytest-style] Make example error out-of-the-box (PT023) (#​19104)
  • [flake8-pytest-style] Make example error out-of-the-box (PT030) (#​19105)
  • [flake8-quotes] Make example error out-of-the-box (Q003) (#​19106)
  • [flake8-simplify] Make example error out-of-the-box (SIM110) (#​19113)
  • [flake8-simplify] Make example error out-of-the-box (SIM113) (#​19109)
  • [flake8-simplify] Make example error out-of-the-box (SIM401) (#​19110)
  • [pyflakes] Fix backslash in docs (F621) (#​19098)
  • [pylint] Fix PLC0415 example (#​18970)

Contributors

Install ruff 0.12.2

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.2/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.2/ruff-installer.ps1 | iex"

Download ruff 0.12.2

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

v0.12.1

Compare Source

Release Notes

Preview features
  • [flake8-errmsg] Extend EM101 to support byte strings (#​18867)
  • [flake8-use-pathlib] Add autofix for PTH202 (#​18763)
  • [pygrep-hooks] Add AsyncMock methods to invalid-mock-access (PGH005) (#​18547)
  • [pylint] Ignore __init__.py files in (PLC0414) (#​18400)
  • [ruff] Trigger RUF037 for empty string and byte strings (#​18862)
  • [formatter] Fix missing blank lines before decorated classes in .pyi files (#​18888)
Bug fixes
  • Avoid generating diagnostics with per-file ignores (#​18801)
  • Handle parenthesized arguments in remove_argument (#​18805)
  • [flake8-logging] Avoid false positive for exc_info=True outside logger.exception (LOG014) (#​18737)
  • [flake8-pytest-style] Enforce pytest import for decorators (#​18779)
  • [flake8-pytest-style] Mark autofix for PT001 and PT023 as unsafe if there's comments in the decorator (#​18792)
  • [flake8-pytest-style] PT001/PT023 fix makes syntax error on parenthesized decorator (#​18782)
  • [flake8-raise] Make fix unsafe if it deletes comments (RSE102) (#​18788)
  • [flake8-simplify] Fix SIM911 autofix creating a syntax error (#​18793)
  • [flake8-simplify] Fix false negatives for shadowed bindings (SIM910, SIM911) (#​18794)
  • [flake8-simplify] Preserve original behavior for except () and bare except (SIM105) (#​18213)
  • [flake8-pyi] Fix PYI041's fix causing TypeError with None | None | ... (#​18637)
  • [perflint] Fix PERF101 autofix creating a syntax error and mark autofix as unsafe if there are comments in the list call expr (#​18803)
  • [perflint] Fix false negative in PERF401 (#​18866)
  • [pylint] Avoid flattening nested min/max when outer call has single argument (PLW3301) (#​16885)
  • [pylint] Fix PLC2801 autofix creating a syntax error (#​18857)
  • [pylint] Mark PLE0241 autofix as unsafe if there's comments in the base classes (#​18832)
  • [pylint] Suppress PLE2510/PLE2512/PLE2513/PLE2514/PLE2515 autofix if the text contains an odd number of backslashes (#​18856)
  • [refurb] Detect more exotic float literals in FURB164 (#​18925)
  • [refurb] Fix FURB163 autofix creating a syntax error for yield expressions (#​18756)
  • [refurb] Mark FURB129 autofix as unsafe if there's comments in the readlines call (#​18858)
  • [ruff] Fix false positives and negatives in RUF010 (#​18690)
  • Fix casing of analyze.direction variant names (#​18892)
Rule changes
  • Fix f-string interpolation escaping in generated fixes (#​18882)
  • [flake8-return] Mark RET501 fix unsafe if comments are inside (#​18780)
  • [flake8-async] Fix detection for large integer sleep durations in ASYNC116 rule (#​18767)
  • [flake8-async] Mark autofix for ASYNC115 as unsafe if the call expression contains comments (#​18753)
  • [flake8-bugbear] Mark autofix for B004 as unsafe if the hasattr call expr contains comments (#​18755)
  • [flake8-comprehension] Mark autofix for C420 as unsafe if there's comments inside the dict comprehension (#​18768)
  • [flake8-comprehensions] Handle template strings for comprehension fixes (#​18710)
  • [flake8-future-annotations] Add autofix (FA100) (#​18903)
  • [pyflakes] Mark F504/F522/F523 autofix as unsafe if there's a call with side effect (#​18839)
  • [pylint] Allow fix with comments and document performance implications (PLW3301) (#​18936)
  • [pylint] Detect more exotic NaN literals in PLW0177 (#​18630)
  • [pylint] Fix PLC1802 autofix creating a syntax error and mark autofix as unsafe if there's comments in the len call (#​18836)
  • [pyupgrade] Extend version detection to include sys.version_info.major (UP036) (#​18633)
  • [ruff] Add lint rule RUF064 for calling chmod with non-octal integers (#​18541)
  • [ruff] Added cls.__dict__.get('__annotations__') check (RUF063) (#​18233)
  • [ruff] Frozen dataclass default should be valid (RUF009) (#​18735)
Server
  • Consider virtual path for various server actions (#​18910)
Documentation
Other changes
  • Disallow newlines in format specifiers of single quoted f- or t-strings (#​18708)
  • [flake8-logging] Add fix safety section to LOG002 (#​18840)
  • [pyupgrade] Add fix safety section to UP010 (#​18838)

Contributors

Install ruff 0.12.1

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.1/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.1/ruff-installer.ps1 | iex"

Download ruff 0.12.1

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

v0.12.0

Compare Source

Release Notes

Check out the blog post 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:

Deprecated Rules

The following rules have been deprecated:

Stabilization

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

The following behaviors have been stabilized:

Preview features
  • [ruff] Check for non-context-manager use of pytest.raises, pytest.warns, and pytest.deprecated_call (RUF061) (#​17368)
  • [syntax-errors] Raise unsupported syntax error for template strings prior to Python 3.14 (#​18664)
Bug fixes
  • Add syntax error when conversion flag does not immediately follow exclamation mark (#​18706)
  • Add trailing space around readlines (#​18542)
  • Fix \r and \r\n handling in t- and f-string debug texts (#​18673)
  • Hug closing } when f-string expression has a format specifier (#​18704)
  • [flake8-pyi] Avoid syntax error in the case of starred and keyword arguments (PYI059) (#​18611)
  • [flake8-return] Fix RET504 autofix generating a syntax error (#​18428)
  • [pep8-naming] Suppress fix for N804 and N805 if the recommended name is already used (#​18472)
  • [pycodestyle] Avoid causing a syntax error in expressions spanning multiple lines (E731) (#​18479)
  • [pyupgrade] Suppress UP008 if super is shadowed (#​18688)
  • [refurb] Parenthesize lambda and ternary expressions (FURB122, FURB142) (#​18592)
  • [ruff] Handle extra arguments to deque (RUF037) (#​18614)
  • [ruff] Preserve parentheses around deque in fix for unnecessary-empty-iterable-within-deque-call (RUF037) (#​18598)
  • [ruff] Validate arguments before offering a fix (RUF056) (#​18631)
  • [ruff] Skip fix for RUF059 if dummy name is already bound (#​18509)
  • [pylint] Fix PLW0128 to check assignment targets in square brackets and after asterisks (#​18665)
Rule changes
  • Fix false positive on mutations in return statements (B909) (#​18408)
  • Treat ty: comments as pragma comments (#​18532)
  • [flake8-pyi] Apply custom-typevar-for-self to string annotations (PYI019) (#​18311)
  • [pyupgrade] Don't offer a fix for Optional[None] (UP007, UP045) (#​18545)
  • [pyupgrade] Fix super(__class__, self) detection (UP008) (#​18478)
  • [refurb] Make the fix for FURB163 unsafe for log2, log10, *args, and deleted comments (#​18645)
Server
Documentation
  • Drop confusing second * from glob pattern example for per-file-target-version (#​18709)
  • Update Neovim configuration examples (#​18491)
  • [pylint] De-emphasize __hash__ = Parent.__hash__ (PLW1641) (#​18613)
  • [refurb] Add a note about float literal handling (FURB157) (#​18615)

Contributors

Install ruff 0.12.0

Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.0/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.0/ruff-installer.ps1 | iex"

Download ruff 0.12.0

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

v0.11.13

Compare Source

Release Notes

Preview features
Bug fixes
  • [perflint] Fix missing parentheses for lambda and ternary conditions (PERF401, PERF403) (#​18412)
  • [pyupgrade] Apply UP035 only on py313+ for get_type_hints() (#​18476)
  • [pyupgrade] Make fix unsafe if it deletes comments (UP004,UP050) (#​18393, #​18390)
Rule changes
  • [fastapi] Avoid false positive for class dependencies (FAST003) (#​18271)
Documentation
  • Update editor setup docs for Neovim and Vim (#​18324)
Other changes
  • Support Python 3.14 template strings (t-strings) in formatter and parser (#​17851)

Contributors

Install ruff 0.11.13

Install prebuilt binaries via shell script
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
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 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-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 has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [ruff](https://docs.astral.sh/ruff) ([source](https://github.com/astral-sh/ruff), [changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)) | `==0.11.12` -> `==0.14.9` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.14.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.11.12/0.14.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.14.9`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0149) [Compare Source](https://github.com/astral-sh/ruff/compare/0.14.8...0.14.9) Released on 2025-12-11. ##### Preview features - \[`ruff`] New `RUF100` diagnostics for unused range suppressions ([#&#8203;21783](https://github.com/astral-sh/ruff/pull/21783)) - \[`pylint`] Detect subclasses of builtin exceptions (`PLW0133`) ([#&#8203;21382](https://github.com/astral-sh/ruff/pull/21382)) ##### Bug fixes - Fix comment placement in lambda parameters ([#&#8203;21868](https://github.com/astral-sh/ruff/pull/21868)) - Skip over trivia tokens after re-lexing ([#&#8203;21895](https://github.com/astral-sh/ruff/pull/21895)) - \[`flake8-bandit`] Fix false positive when using non-standard `CSafeLoader` path (S506). ([#&#8203;21830](https://github.com/astral-sh/ruff/pull/21830)) - \[`flake8-bugbear`] Accept immutable slice default arguments (`B008`) ([#&#8203;21823](https://github.com/astral-sh/ruff/pull/21823)) ##### Rule changes - \[`pydocstyle`] Suppress `D417` for parameters with `Unpack` annotations ([#&#8203;21816](https://github.com/astral-sh/ruff/pull/21816)) ##### Performance - Use `memchr` for computing line indexes ([#&#8203;21838](https://github.com/astral-sh/ruff/pull/21838)) ##### Documentation - Document `*.pyw` is included by default in preview ([#&#8203;21885](https://github.com/astral-sh/ruff/pull/21885)) - Document range suppressions, reorganize suppression docs ([#&#8203;21884](https://github.com/astral-sh/ruff/pull/21884)) - Update mkdocs-material to 9.7.0 (Insiders now free) ([#&#8203;21797](https://github.com/astral-sh/ruff/pull/21797)) ##### Contributors - [@&#8203;Avasam](https://github.com/Avasam) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;charliermarsh](https://github.com/charliermarsh) - [@&#8203;amyreese](https://github.com/amyreese) - [@&#8203;phongddo](https://github.com/phongddo) - [@&#8203;prakhar1144](https://github.com/prakhar1144) - [@&#8203;mahiro72](https://github.com/mahiro72) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;LoicRiegel](https://github.com/LoicRiegel) ### [`v0.14.8`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0148) [Compare Source](https://github.com/astral-sh/ruff/compare/0.14.7...0.14.8) Released on 2025-12-04. ##### Preview features - \[`flake8-bugbear`] Catch `yield` expressions within other statements (`B901`) ([#&#8203;21200](https://github.com/astral-sh/ruff/pull/21200)) - \[`flake8-use-pathlib`] Mark fixes unsafe for return type changes (`PTH104`, `PTH105`, `PTH109`, `PTH115`) ([#&#8203;21440](https://github.com/astral-sh/ruff/pull/21440)) ##### Bug fixes - Fix syntax error false positives for `await` outside functions ([#&#8203;21763](https://github.com/astral-sh/ruff/pull/21763)) - \[`flake8-simplify`] Fix truthiness assumption for non-iterable arguments in tuple/list/set calls (`SIM222`, `SIM223`) ([#&#8203;21479](https://github.com/astral-sh/ruff/pull/21479)) ##### Documentation - Suggest using `--output-file` option in GitLab integration ([#&#8203;21706](https://github.com/astral-sh/ruff/pull/21706)) ##### Other changes - \[syntax-error] Default type parameter followed by non-default type parameter ([#&#8203;21657](https://github.com/astral-sh/ruff/pull/21657)) ##### Contributors - [@&#8203;kieran-ryan](https://github.com/kieran-ryan) - [@&#8203;11happy](https://github.com/11happy) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;ntBre](https://github.com/ntBre) ### [`v0.14.7`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0147) [Compare Source](https://github.com/astral-sh/ruff/compare/0.14.6...0.14.7) Released on 2025-11-28. ##### Preview features - \[`flake8-bandit`] Handle string literal bindings in suspicious-url-open-usage (`S310`) ([#&#8203;21469](https://github.com/astral-sh/ruff/pull/21469)) - \[`pylint`] Fix `PLR1708` false positives on nested functions ([#&#8203;21177](https://github.com/astral-sh/ruff/pull/21177)) - \[`pylint`] Fix suppression for empty dict without tuple key annotation (`PLE1141`) ([#&#8203;21290](https://github.com/astral-sh/ruff/pull/21290)) - \[`ruff`] Add rule `RUF066` to detect unnecessary class properties ([#&#8203;21535](https://github.com/astral-sh/ruff/pull/21535)) - \[`ruff`] Catch more dummy variable uses (`RUF052`) ([#&#8203;19799](https://github.com/astral-sh/ruff/pull/19799)) ##### Bug fixes - \[server] Set severity for non-rule diagnostics ([#&#8203;21559](https://github.com/astral-sh/ruff/pull/21559)) - \[`flake8-implicit-str-concat`] Avoid invalid fix in (`ISC003`) ([#&#8203;21517](https://github.com/astral-sh/ruff/pull/21517)) - \[`parser`] Fix panic when parsing IPython escape command expressions ([#&#8203;21480](https://github.com/astral-sh/ruff/pull/21480)) ##### CLI - Show partial fixability indicator in statistics output ([#&#8203;21513](https://github.com/astral-sh/ruff/pull/21513)) ##### Contributors - [@&#8203;mikeleppane](https://github.com/mikeleppane) - [@&#8203;senekor](https://github.com/senekor) - [@&#8203;ShaharNaveh](https://github.com/ShaharNaveh) - [@&#8203;JumboBear](https://github.com/JumboBear) - [@&#8203;prakhar1144](https://github.com/prakhar1144) - [@&#8203;tsvikas](https://github.com/tsvikas) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;chirizxc](https://github.com/chirizxc) - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;MichaReiser](https://github.com/MichaReiser) ### [`v0.14.6`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0146) [Compare Source](https://github.com/astral-sh/ruff/compare/0.14.5...0.14.6) Released on 2025-11-21. ##### Preview features - \[`flake8-bandit`] Support new PySNMP API paths (`S508`, `S509`) ([#&#8203;21374](https://github.com/astral-sh/ruff/pull/21374)) ##### Bug fixes - Adjust own-line comment placement between branches ([#&#8203;21185](https://github.com/astral-sh/ruff/pull/21185)) - Avoid syntax error when formatting attribute expressions with outer parentheses, parenthesized value, and trailing comment on value ([#&#8203;20418](https://github.com/astral-sh/ruff/pull/20418)) - Fix panic when formatting comments in unary expressions ([#&#8203;21501](https://github.com/astral-sh/ruff/pull/21501)) - Respect `fmt: skip` for compound statements on a single line ([#&#8203;20633](https://github.com/astral-sh/ruff/pull/20633)) - \[`refurb`] Fix `FURB103` autofix ([#&#8203;21454](https://github.com/astral-sh/ruff/pull/21454)) - \[`ruff`] Fix false positive for complex conversion specifiers in `logging-eager-conversion` (`RUF065`) ([#&#8203;21464](https://github.com/astral-sh/ruff/pull/21464)) ##### Rule changes - \[`ruff`] Avoid false positive on `ClassVar` reassignment (`RUF012`) ([#&#8203;21478](https://github.com/astral-sh/ruff/pull/21478)) ##### CLI - Render hyperlinks for lint errors ([#&#8203;21514](https://github.com/astral-sh/ruff/pull/21514)) - Add a `ruff analyze` option to skip over imports in `TYPE_CHECKING` blocks ([#&#8203;21472](https://github.com/astral-sh/ruff/pull/21472)) ##### Documentation - Limit `eglot-format` hook to eglot-managed Python buffers ([#&#8203;21459](https://github.com/astral-sh/ruff/pull/21459)) - Mention `force-exclude` in "Configuration > Python file discovery" ([#&#8203;21500](https://github.com/astral-sh/ruff/pull/21500)) ##### Contributors - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;gauthsvenkat](https://github.com/gauthsvenkat) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;thamer](https://github.com/thamer) - [@&#8203;Ruchir28](https://github.com/Ruchir28) - [@&#8203;thejcannon](https://github.com/thejcannon) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;chirizxc](https://github.com/chirizxc) ### [`v0.14.5`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0145) [Compare Source](https://github.com/astral-sh/ruff/compare/0.14.4...0.14.5) Released on 2025-11-13. ##### Preview features - \[`flake8-simplify`] Apply `SIM113` when index variable is of type `int` ([#&#8203;21395](https://github.com/astral-sh/ruff/pull/21395)) - \[`pydoclint`] Fix false positive when Sphinx directives follow a "Raises" section (`DOC502`) ([#&#8203;20535](https://github.com/astral-sh/ruff/pull/20535)) - \[`pydoclint`] Support NumPy-style comma-separated parameters (`DOC102`) ([#&#8203;20972](https://github.com/astral-sh/ruff/pull/20972)) - \[`refurb`] Auto-fix annotated assignments (`FURB101`) ([#&#8203;21278](https://github.com/astral-sh/ruff/pull/21278)) - \[`ruff`] Ignore `str()` when not used for simple conversion (`RUF065`) ([#&#8203;21330](https://github.com/astral-sh/ruff/pull/21330)) ##### Bug fixes - Fix syntax error false positive on alternative `match` patterns ([#&#8203;21362](https://github.com/astral-sh/ruff/pull/21362)) - \[`flake8-simplify`] Fix false positive for iterable initializers with generator arguments (`SIM222`) ([#&#8203;21187](https://github.com/astral-sh/ruff/pull/21187)) - \[`pyupgrade`] Fix false positive on relative imports from local `.builtins` module (`UP029`) ([#&#8203;21309](https://github.com/astral-sh/ruff/pull/21309)) - \[`pyupgrade`] Consistently set the deprecated tag (`UP035`) ([#&#8203;21396](https://github.com/astral-sh/ruff/pull/21396)) ##### Rule changes - \[`refurb`] Detect empty f-strings (`FURB105`) ([#&#8203;21348](https://github.com/astral-sh/ruff/pull/21348)) ##### CLI - Add option to provide a reason to `--add-noqa` ([#&#8203;21294](https://github.com/astral-sh/ruff/pull/21294)) - Add upstream linter URL to `ruff linter --output-format=json` ([#&#8203;21316](https://github.com/astral-sh/ruff/pull/21316)) - Add color to `--help` ([#&#8203;21337](https://github.com/astral-sh/ruff/pull/21337)) ##### Documentation - Add a new "Opening a PR" section to the contribution guide ([#&#8203;21298](https://github.com/astral-sh/ruff/pull/21298)) - Added the PyScripter IDE to the list of "Who is using Ruff?" ([#&#8203;21402](https://github.com/astral-sh/ruff/pull/21402)) - Update PyCharm setup instructions ([#&#8203;21409](https://github.com/astral-sh/ruff/pull/21409)) - \[`flake8-annotations`] Add link to `allow-star-arg-any` option (`ANN401`) ([#&#8203;21326](https://github.com/astral-sh/ruff/pull/21326)) ##### Other changes - \[`configuration`] Improve error message when `line-length` exceeds `u16::MAX` ([#&#8203;21329](https://github.com/astral-sh/ruff/pull/21329)) ##### Contributors - [@&#8203;njhearp](https://github.com/njhearp) - [@&#8203;11happy](https://github.com/11happy) - [@&#8203;hugovk](https://github.com/hugovk) - [@&#8203;Gankra](https://github.com/Gankra) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;pyscripter](https://github.com/pyscripter) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;henryiii](https://github.com/henryiii) - [@&#8203;charliecloudberry](https://github.com/charliecloudberry) ### [`v0.14.4`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0144) [Compare Source](https://github.com/astral-sh/ruff/compare/0.14.3...0.14.4) Released on 2025-11-06. ##### Preview features - \[formatter] Allow newlines after function headers without docstrings ([#&#8203;21110](https://github.com/astral-sh/ruff/pull/21110)) - \[formatter] Avoid extra parentheses for long `match` patterns with `as` captures ([#&#8203;21176](https://github.com/astral-sh/ruff/pull/21176)) - \[`refurb`] Expand fix safety for keyword arguments and `Decimal`s (`FURB164`) ([#&#8203;21259](https://github.com/astral-sh/ruff/pull/21259)) - \[`refurb`] Preserve argument ordering in autofix (`FURB103`) ([#&#8203;20790](https://github.com/astral-sh/ruff/pull/20790)) ##### Bug fixes - \[server] Fix missing diagnostics for notebooks ([#&#8203;21156](https://github.com/astral-sh/ruff/pull/21156)) - \[`flake8-bugbear`] Ignore non-NFKC attribute names in `B009` and `B010` ([#&#8203;21131](https://github.com/astral-sh/ruff/pull/21131)) - \[`refurb`] Fix false negative for underscores before sign in `Decimal` constructor (`FURB157`) ([#&#8203;21190](https://github.com/astral-sh/ruff/pull/21190)) - \[`ruff`] Fix false positives on starred arguments (`RUF057`) ([#&#8203;21256](https://github.com/astral-sh/ruff/pull/21256)) ##### Rule changes - \[`airflow`] extend deprecated argument `concurrency` in `airflow..DAG` (`AIR301`) ([#&#8203;21220](https://github.com/astral-sh/ruff/pull/21220)) ##### Documentation - Improve `extend` docs ([#&#8203;21135](https://github.com/astral-sh/ruff/pull/21135)) - \[`flake8-comprehensions`] Fix typo in `C416` documentation ([#&#8203;21184](https://github.com/astral-sh/ruff/pull/21184)) - Revise Ruff setup instructions for Zed editor ([#&#8203;20935](https://github.com/astral-sh/ruff/pull/20935)) ##### Other changes - Make `ruff analyze graph` work with jupyter notebooks ([#&#8203;21161](https://github.com/astral-sh/ruff/pull/21161)) ##### Contributors - [@&#8203;chirizxc](https://github.com/chirizxc) - [@&#8203;Lee-W](https://github.com/Lee-W) - [@&#8203;musicinmybrain](https://github.com/musicinmybrain) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;tjkuson](https://github.com/tjkuson) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;gauthsvenkat](https://github.com/gauthsvenkat) - [@&#8203;LoicRiegel](https://github.com/LoicRiegel) ### [`v0.14.3`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0143) [Compare Source](https://github.com/astral-sh/ruff/compare/0.14.2...0.14.3) Released on 2025-10-30. ##### Preview features - Respect `--output-format` with `--watch` ([#&#8203;21097](https://github.com/astral-sh/ruff/pull/21097)) - \[`pydoclint`] Fix false positive on explicit exception re-raising (`DOC501`, `DOC502`) ([#&#8203;21011](https://github.com/astral-sh/ruff/pull/21011)) - \[`pyflakes`] Revert to stable behavior if imports for module lie in alternate branches for `F401` ([#&#8203;20878](https://github.com/astral-sh/ruff/pull/20878)) - \[`pylint`] Implement `stop-iteration-return` (`PLR1708`) ([#&#8203;20733](https://github.com/astral-sh/ruff/pull/20733)) - \[`ruff`] Add support for additional eager conversion patterns (`RUF065`) ([#&#8203;20657](https://github.com/astral-sh/ruff/pull/20657)) ##### Bug fixes - Fix finding keyword range for clause header after statement ending with semicolon ([#&#8203;21067](https://github.com/astral-sh/ruff/pull/21067)) - Fix syntax error false positive on nested alternative patterns ([#&#8203;21104](https://github.com/astral-sh/ruff/pull/21104)) - \[`ISC001`] Fix panic when string literals are unclosed ([#&#8203;21034](https://github.com/astral-sh/ruff/pull/21034)) - \[`flake8-django`] Apply `DJ001` to annotated fields ([#&#8203;20907](https://github.com/astral-sh/ruff/pull/20907)) - \[`flake8-pyi`] Fix `PYI034` to not trigger on metaclasses (`PYI034`) ([#&#8203;20881](https://github.com/astral-sh/ruff/pull/20881)) - \[`flake8-type-checking`] Fix `TC003` false positive with `future-annotations` ([#&#8203;21125](https://github.com/astral-sh/ruff/pull/21125)) - \[`pyflakes`] Fix false positive for `__class__` in lambda expressions within class definitions (`F821`) ([#&#8203;20564](https://github.com/astral-sh/ruff/pull/20564)) - \[`pyupgrade`] Fix false positive for `TypeVar` with default on Python <3.13 (`UP046`,`UP047`) ([#&#8203;21045](https://github.com/astral-sh/ruff/pull/21045)) ##### Rule changes - Add missing docstring sections to the numpy list ([#&#8203;20931](https://github.com/astral-sh/ruff/pull/20931)) - \[`airflow`] Extend `airflow.models..Param` check (`AIR311`) ([#&#8203;21043](https://github.com/astral-sh/ruff/pull/21043)) - \[`airflow`] Warn that `airflow....DAG.create_dagrun` has been removed (`AIR301`) ([#&#8203;21093](https://github.com/astral-sh/ruff/pull/21093)) - \[`refurb`] Preserve digit separators in `Decimal` constructor (`FURB157`) ([#&#8203;20588](https://github.com/astral-sh/ruff/pull/20588)) ##### Server - Avoid sending an unnecessary "clear diagnostics" message for clients supporting pull diagnostics ([#&#8203;21105](https://github.com/astral-sh/ruff/pull/21105)) ##### Documentation - \[`flake8-bandit`] Fix correct example for `S308` ([#&#8203;21128](https://github.com/astral-sh/ruff/pull/21128)) ##### Other changes - Clearer error message when `line-length` goes beyond threshold ([#&#8203;21072](https://github.com/astral-sh/ruff/pull/21072)) ##### Contributors - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;jvacek](https://github.com/jvacek) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;augustelalande](https://github.com/augustelalande) - [@&#8203;prakhar1144](https://github.com/prakhar1144) - [@&#8203;TaKO8Ki](https://github.com/TaKO8Ki) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;fatelei](https://github.com/fatelei) - [@&#8203;ShaharNaveh](https://github.com/ShaharNaveh) - [@&#8203;Lee-W](https://github.com/Lee-W) ### [`v0.14.2`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0142) [Compare Source](https://github.com/astral-sh/ruff/compare/0.14.1...0.14.2) Released on 2025-10-23. ##### Preview features - \[`flake8-gettext`] Resolve qualified names and built-in bindings (`INT001`, `INT002`, `INT003`) ([#&#8203;19045](https://github.com/astral-sh/ruff/pull/19045)) ##### Bug fixes - Avoid reusing nested, interpolated quotes before Python 3.12 ([#&#8203;20930](https://github.com/astral-sh/ruff/pull/20930)) - Catch syntax errors in nested interpolations before Python 3.12 ([#&#8203;20949](https://github.com/astral-sh/ruff/pull/20949)) - \[`fastapi`] Handle ellipsis defaults in `FAST002` autofix ([#&#8203;20810](https://github.com/astral-sh/ruff/pull/20810)) - \[`flake8-simplify`] Skip `SIM911` when unknown arguments are present ([#&#8203;20697](https://github.com/astral-sh/ruff/pull/20697)) - \[`pyupgrade`] Always parenthesize assignment expressions in fix for `f-string` (`UP032`) ([#&#8203;21003](https://github.com/astral-sh/ruff/pull/21003)) - \[`pyupgrade`] Fix `UP032` conversion for decimal ints with underscores ([#&#8203;21022](https://github.com/astral-sh/ruff/pull/21022)) - \[`fastapi`] Skip autofix for keyword and `__debug__` path params (`FAST003`) ([#&#8203;20960](https://github.com/astral-sh/ruff/pull/20960)) ##### Rule changes - \[`flake8-bugbear`] Skip `B905` and `B912` for fewer than two iterables and no starred arguments ([#&#8203;20998](https://github.com/astral-sh/ruff/pull/20998)) - \[`ruff`] Use `DiagnosticTag` for more `pyflakes` and `pandas` rules ([#&#8203;20801](https://github.com/astral-sh/ruff/pull/20801)) ##### CLI - Improve JSON output from `ruff rule` ([#&#8203;20168](https://github.com/astral-sh/ruff/pull/20168)) ##### Documentation - Add source to testimonial ([#&#8203;20971](https://github.com/astral-sh/ruff/pull/20971)) - Document when a rule was added ([#&#8203;21035](https://github.com/astral-sh/ruff/pull/21035)) ##### Other changes - \[syntax-errors] Name is parameter and global ([#&#8203;20426](https://github.com/astral-sh/ruff/pull/20426)) - \[syntax-errors] Alternative `match` patterns bind different names ([#&#8203;20682](https://github.com/astral-sh/ruff/pull/20682)) ##### Contributors - [@&#8203;hengky-kurniawan-1](https://github.com/hengky-kurniawan-1) - [@&#8203;ShalokShalom](https://github.com/ShalokShalom) - [@&#8203;robsdedude](https://github.com/robsdedude) - [@&#8203;LoicRiegel](https://github.com/LoicRiegel) - [@&#8203;TaKO8Ki](https://github.com/TaKO8Ki) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;11happy](https://github.com/11happy) - [@&#8203;ntBre](https://github.com/ntBre) ### [`v0.14.1`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0141) [Compare Source](https://github.com/astral-sh/ruff/compare/0.14.0...0.14.1) Released on 2025-10-16. ##### Preview features - \[formatter] Remove parentheses around multiple exception types on Python 3.14+ ([#&#8203;20768](https://github.com/astral-sh/ruff/pull/20768)) - \[`flake8-bugbear`] Omit annotation in preview fix for `B006` ([#&#8203;20877](https://github.com/astral-sh/ruff/pull/20877)) - \[`flake8-logging-format`] Avoid dropping implicitly concatenated pieces in the `G004` fix ([#&#8203;20793](https://github.com/astral-sh/ruff/pull/20793)) - \[`pydoclint`] Implement `docstring-extraneous-parameter` (`DOC102`) ([#&#8203;20376](https://github.com/astral-sh/ruff/pull/20376)) - \[`pyupgrade`] Extend `UP019` to detect `typing_extensions.Text` (`UP019`) ([#&#8203;20825](https://github.com/astral-sh/ruff/pull/20825)) - \[`pyupgrade`] Fix false negative for `TypeVar` with default argument in `non-pep695-generic-class` (`UP046`) ([#&#8203;20660](https://github.com/astral-sh/ruff/pull/20660)) ##### Bug fixes - Fix false negatives in `Truthiness::from_expr` for lambdas, generators, and f-strings ([#&#8203;20704](https://github.com/astral-sh/ruff/pull/20704)) - Fix syntax error false positives for escapes and quotes in f-strings ([#&#8203;20867](https://github.com/astral-sh/ruff/pull/20867)) - Fix syntax error false positives on parenthesized context managers ([#&#8203;20846](https://github.com/astral-sh/ruff/pull/20846)) - \[`fastapi`] Fix false positives for path parameters that FastAPI doesn't recognize (`FAST003`) ([#&#8203;20687](https://github.com/astral-sh/ruff/pull/20687)) - \[`flake8-pyi`] Fix operator precedence by adding parentheses when needed (`PYI061`) ([#&#8203;20508](https://github.com/astral-sh/ruff/pull/20508)) - \[`ruff`] Suppress diagnostic for f-string interpolations with debug text (`RUF010`) ([#&#8203;20525](https://github.com/astral-sh/ruff/pull/20525)) ##### Rule changes - \[`airflow`] Add warning to `airflow.datasets.DatasetEvent` usage (`AIR301`) ([#&#8203;20551](https://github.com/astral-sh/ruff/pull/20551)) - \[`flake8-bugbear`] Mark `B905` and `B912` fixes as unsafe ([#&#8203;20695](https://github.com/astral-sh/ruff/pull/20695)) - Use `DiagnosticTag` for more rules - changes display in editors ([#&#8203;20758](https://github.com/astral-sh/ruff/pull/20758),[#&#8203;20734](https://github.com/astral-sh/ruff/pull/20734)) ##### Documentation - Update Python compatibility from 3.13 to 3.14 in README.md ([#&#8203;20852](https://github.com/astral-sh/ruff/pull/20852)) - Update `lint.flake8-type-checking.quoted-annotations` docs ([#&#8203;20765](https://github.com/astral-sh/ruff/pull/20765)) - Update setup instructions for Zed 0.208.0+ ([#&#8203;20902](https://github.com/astral-sh/ruff/pull/20902)) - \[`flake8-datetimez`] Clarify docs for several rules ([#&#8203;20778](https://github.com/astral-sh/ruff/pull/20778)) - Fix typo in `RUF015` description ([#&#8203;20873](https://github.com/astral-sh/ruff/pull/20873)) ##### Other changes - Reduce binary size ([#&#8203;20863](https://github.com/astral-sh/ruff/pull/20863)) - Improved error recovery for unclosed strings (including f- and t-strings) ([#&#8203;20848](https://github.com/astral-sh/ruff/pull/20848)) ##### Contributors - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;Paillat-dev](https://github.com/Paillat-dev) - [@&#8203;terror](https://github.com/terror) - [@&#8203;pieterh-oai](https://github.com/pieterh-oai) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;TaKO8Ki](https://github.com/TaKO8Ki) - [@&#8203;ageorgou](https://github.com/ageorgou) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;mgaitan](https://github.com/mgaitan) - [@&#8203;augustelalande](https://github.com/augustelalande) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;Lee-W](https://github.com/Lee-W) - [@&#8203;injust](https://github.com/injust) - [@&#8203;CarrotManMatt](https://github.com/CarrotManMatt) ### [`v0.14.0`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0140) [Compare Source](https://github.com/astral-sh/ruff/compare/0.13.3...0.14.0) Released on 2025-10-07. ##### Breaking changes - Update default and latest Python versions for 3.14 ([#&#8203;20725](https://github.com/astral-sh/ruff/pull/20725)) ##### Preview features - \[`flake8-bugbear`] Include certain guaranteed-mutable expressions: tuples, generators, and assignment expressions (`B006`) ([#&#8203;20024](https://github.com/astral-sh/ruff/pull/20024)) - \[`refurb`] Add fixes for `FURB101` and `FURB103` ([#&#8203;20520](https://github.com/astral-sh/ruff/pull/20520)) - \[`ruff`] Extend `FA102` with listed PEP 585-compatible APIs ([#&#8203;20659](https://github.com/astral-sh/ruff/pull/20659)) ##### Bug fixes - \[`flake8-annotations`] Fix return type annotations to handle shadowed builtin symbols (`ANN201`, `ANN202`, `ANN204`, `ANN205`, `ANN206`) ([#&#8203;20612](https://github.com/astral-sh/ruff/pull/20612)) - \[`flynt`] Fix f-string quoting for mixed quote joiners (`FLY002`) ([#&#8203;20662](https://github.com/astral-sh/ruff/pull/20662)) - \[`isort`] Fix inserting required imports before future imports (`I002`) ([#&#8203;20676](https://github.com/astral-sh/ruff/pull/20676)) - \[`ruff`] Handle argfile expansion errors gracefully ([#&#8203;20691](https://github.com/astral-sh/ruff/pull/20691)) - \[`ruff`] Skip `RUF051` if `else`/`elif` block is present ([#&#8203;20705](https://github.com/astral-sh/ruff/pull/20705)) - \[`ruff`] Improve handling of intermixed comments inside from-imports ([#&#8203;20561](https://github.com/astral-sh/ruff/pull/20561)) ##### Documentation - \[`flake8-comprehensions`] Clarify fix safety documentation (`C413`) ([#&#8203;20640](https://github.com/astral-sh/ruff/pull/20640)) ##### Contributors - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;terror](https://github.com/terror) - [@&#8203;TaKO8Ki](https://github.com/TaKO8Ki) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;njhearp](https://github.com/njhearp) - [@&#8203;amyreese](https://github.com/amyreese) - [@&#8203;IDrokin117](https://github.com/IDrokin117) - [@&#8203;chirizxc](https://github.com/chirizxc) ### [`v0.13.3`](https://github.com/astral-sh/ruff/releases/tag/0.13.3) [Compare Source](https://github.com/astral-sh/ruff/compare/0.13.2...0.13.3) #### Release Notes Released on 2025-10-02. ##### Preview features - Display diffs for `ruff format --check` and add support for different output formats ([#&#8203;20443](https://github.com/astral-sh/ruff/pull/20443)) - \[`pyflakes`] Handle some common submodule import situations for `unused-import` (`F401`) ([#&#8203;20200](https://github.com/astral-sh/ruff/pull/20200)) - \[`ruff`] Do not flag `%r` + `repr()` combinations (`RUF065`) ([#&#8203;20600](https://github.com/astral-sh/ruff/pull/20600)) ##### Bug fixes - \[`cli`] Add conflict between `--add-noqa` and `--diff` options ([#&#8203;20642](https://github.com/astral-sh/ruff/pull/20642)) - \[`pylint`] Exempt required imports from `PLR0402` ([#&#8203;20381](https://github.com/astral-sh/ruff/pull/20381)) - \[`pylint`] Fix missing `max-nested-blocks` in settings display ([#&#8203;20574](https://github.com/astral-sh/ruff/pull/20574)) - \[`pyupgrade`] Prevent infinite loop with `I002` and `UP026` ([#&#8203;20634](https://github.com/astral-sh/ruff/pull/20634)) ##### Rule changes - \[`flake8-simplify`] Improve help message clarity (`SIM105`) ([#&#8203;20548](https://github.com/astral-sh/ruff/pull/20548)) ##### Documentation - Add the *The Basics* title back to CONTRIBUTING.md ([#&#8203;20624](https://github.com/astral-sh/ruff/pull/20624)) - Fixed documentation for try\_consider\_else ([#&#8203;20587](https://github.com/astral-sh/ruff/pull/20587)) - \[`isort`] Clarify dependency between `order-by-type` and `case-sensitive` settings ([#&#8203;20559](https://github.com/astral-sh/ruff/pull/20559)) - \[`pylint`] Clarify fix safety to include left-hand hashability (`PLR6201`) ([#&#8203;20518](https://github.com/astral-sh/ruff/pull/20518)) ##### Other changes - \[`playground`] Fix quick fixes for empty ranges in playground ([#&#8203;20599](https://github.com/astral-sh/ruff/pull/20599)) ##### Contributors - [@&#8203;TaKO8Ki](https://github.com/TaKO8Ki) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;LilMonk](https://github.com/LilMonk) - [@&#8203;mgiovani](https://github.com/mgiovani) - [@&#8203;IDrokin117](https://github.com/IDrokin117) #### Install ruff 0.13.3 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.13.3/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.13.3/ruff-installer.ps1 | iex" ``` #### Download ruff 0.13.3 | File | Platform | Checksum | | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-riscv64gc-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-riscv64gc-unknown-linux-gnu.tar.gz) | RISCV Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-riscv64gc-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.3/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.13.2`](https://github.com/astral-sh/ruff/releases/tag/0.13.2) [Compare Source](https://github.com/astral-sh/ruff/compare/0.13.1...0.13.2) #### Release Notes Released on 2025-09-25. ##### Preview features - \[`flake8-async`] Implement `blocking-path-method` (`ASYNC240`) ([#&#8203;20264](https://github.com/astral-sh/ruff/pull/20264)) - \[`flake8-bugbear`] Implement `map-without-explicit-strict` (`B912`) ([#&#8203;20429](https://github.com/astral-sh/ruff/pull/20429)) - \[`flake8-bultins`] Detect class-scope builtin shadowing in decorators, default args, and attribute initializers (`A003`) ([#&#8203;20178](https://github.com/astral-sh/ruff/pull/20178)) - \[`ruff`] Implement `logging-eager-conversion` (`RUF065`) ([#&#8203;19942](https://github.com/astral-sh/ruff/pull/19942)) - Include `.pyw` files by default when linting and formatting ([#&#8203;20458](https://github.com/astral-sh/ruff/pull/20458)) ##### Bug fixes - Deduplicate input paths ([#&#8203;20105](https://github.com/astral-sh/ruff/pull/20105)) - \[`flake8-comprehensions`] Preserve trailing commas for single-element lists (`C409`) ([#&#8203;19571](https://github.com/astral-sh/ruff/pull/19571)) - \[`flake8-pyi`] Avoid syntax error from conflict with `PIE790` (`PYI021`) ([#&#8203;20010](https://github.com/astral-sh/ruff/pull/20010)) - \[`flake8-simplify`] Correct fix for positive `maxsplit` without separator (`SIM905`) ([#&#8203;20056](https://github.com/astral-sh/ruff/pull/20056)) - \[`pyupgrade`] Fix `UP008` not to apply when `__class__` is a local variable ([#&#8203;20497](https://github.com/astral-sh/ruff/pull/20497)) - \[`ruff`] Fix `B004` to skip invalid `hasattr`/`getattr` calls ([#&#8203;20486](https://github.com/astral-sh/ruff/pull/20486)) - \[`ruff`] Replace `-nan` with `nan` when using the value to construct a `Decimal` (`FURB164` ) ([#&#8203;20391](https://github.com/astral-sh/ruff/pull/20391)) ##### Documentation - Add 'Finding ways to help' to CONTRIBUTING.md ([#&#8203;20567](https://github.com/astral-sh/ruff/pull/20567)) - Update import path to `ruff-wasm-web` ([#&#8203;20539](https://github.com/astral-sh/ruff/pull/20539)) - \[`flake8-bandit`] Clarify the supported hashing functions (`S324`) ([#&#8203;20534](https://github.com/astral-sh/ruff/pull/20534)) ##### Other changes - \[`playground`] Allow hover quick fixes to appear for overlapping diagnostics ([#&#8203;20527](https://github.com/astral-sh/ruff/pull/20527)) - \[`playground`] Fix non‑BMP code point handling in quick fixes and markers ([#&#8203;20526](https://github.com/astral-sh/ruff/pull/20526)) ##### Contributors - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;mtshiba](https://github.com/mtshiba) - [@&#8203;second-ed](https://github.com/second-ed) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;ShikChen](https://github.com/ShikChen) - [@&#8203;PieterCK](https://github.com/PieterCK) - [@&#8203;GDYendell](https://github.com/GDYendell) - [@&#8203;RazerM](https://github.com/RazerM) - [@&#8203;TaKO8Ki](https://github.com/TaKO8Ki) - [@&#8203;amyreese](https://github.com/amyreese) - [@&#8203;ntbre](https://github.com/ntBre) - [@&#8203;MichaReiser](https://github.com/MichaReiser) #### Install ruff 0.13.2 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.13.2/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.13.2/ruff-installer.ps1 | iex" ``` #### Download ruff 0.13.2 | File | Platform | Checksum | | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-riscv64gc-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-riscv64gc-unknown-linux-gnu.tar.gz) | RISCV Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-riscv64gc-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.2/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.13.1`](https://github.com/astral-sh/ruff/releases/tag/0.13.1) [Compare Source](https://github.com/astral-sh/ruff/compare/0.13.0...0.13.1) #### Release Notes Released on 2025-09-18. ##### Preview features - \[`flake8-simplify`] Detect unnecessary `None` default for additional key expression types (`SIM910`) ([#&#8203;20343](https://github.com/astral-sh/ruff/pull/20343)) - \[`flake8-use-pathlib`] Add fix for `PTH123` ([#&#8203;20169](https://github.com/astral-sh/ruff/pull/20169)) - \[`flake8-use-pathlib`] Fix `PTH101`, `PTH104`, `PTH105`, `PTH121` fixes ([#&#8203;20143](https://github.com/astral-sh/ruff/pull/20143)) - \[`flake8-use-pathlib`] Make `PTH111` fix unsafe because it can change behavior ([#&#8203;20215](https://github.com/astral-sh/ruff/pull/20215)) - \[`pycodestyle`] Fix `E301` to only trigger for functions immediately within a class ([#&#8203;19768](https://github.com/astral-sh/ruff/pull/19768)) - \[`refurb`] Mark `single-item-membership-test` fix as always unsafe (`FURB171`) ([#&#8203;20279](https://github.com/astral-sh/ruff/pull/20279)) ##### Bug fixes - Handle t-strings for token-based rules and suppression comments ([#&#8203;20357](https://github.com/astral-sh/ruff/pull/20357)) - \[`flake8-bandit`] Fix truthiness: dict-only `**` displays not truthy for `shell` (`S602`, `S604`, `S609`) ([#&#8203;20177](https://github.com/astral-sh/ruff/pull/20177)) - \[`flake8-simplify`] Fix diagnostic to show correct method name for `str.rsplit` calls (`SIM905`) ([#&#8203;20459](https://github.com/astral-sh/ruff/pull/20459)) - \[`flynt`] Use triple quotes for joined raw strings with newlines (`FLY002`) ([#&#8203;20197](https://github.com/astral-sh/ruff/pull/20197)) - \[`pyupgrade`] Fix false positive when class name is shadowed by local variable (`UP008`) ([#&#8203;20427](https://github.com/astral-sh/ruff/pull/20427)) - \[`pyupgrade`] Prevent infinite loop with `I002` and `UP026` ([#&#8203;20327](https://github.com/astral-sh/ruff/pull/20327)) - \[`ruff`] Recognize t-strings, generators, and lambdas in `invalid-index-type` (`RUF016`) ([#&#8203;20213](https://github.com/astral-sh/ruff/pull/20213)) ##### Rule changes - \[`RUF102`] Respect rule redirects in invalid rule code detection ([#&#8203;20245](https://github.com/astral-sh/ruff/pull/20245)) - \[`flake8-bugbear`] Mark the fix for `unreliable-callable-check` as always unsafe (`B004`) ([#&#8203;20318](https://github.com/astral-sh/ruff/pull/20318)) - \[`ruff`] Allow dataclass attribute value instantiation from nested frozen dataclass (`RUF009`) ([#&#8203;20352](https://github.com/astral-sh/ruff/pull/20352)) ##### CLI - Add fixes to `output-format=sarif` ([#&#8203;20300](https://github.com/astral-sh/ruff/pull/20300)) - Treat panics as fatal diagnostics, sort panics last ([#&#8203;20258](https://github.com/astral-sh/ruff/pull/20258)) ##### Documentation - \[`ruff`] Add `analyze.string-imports-min-dots` to settings ([#&#8203;20375](https://github.com/astral-sh/ruff/pull/20375)) - Update README.md with Albumentations new repository URL ([#&#8203;20415](https://github.com/astral-sh/ruff/pull/20415)) ##### Other changes - Bump MSRV to Rust 1.88 ([#&#8203;20470](https://github.com/astral-sh/ruff/pull/20470)) - Enable inline noqa for multiline strings in playground ([#&#8203;20442](https://github.com/astral-sh/ruff/pull/20442)) ##### Contributors - [@&#8203;chirizxc](https://github.com/chirizxc) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;IDrokin117](https://github.com/IDrokin117) - [@&#8203;amyreese](https://github.com/amyreese) - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;njhearp](https://github.com/njhearp) - [@&#8203;woodruffw](https://github.com/woodruffw) - [@&#8203;dcreager](https://github.com/dcreager) - [@&#8203;TaKO8Ki](https://github.com/TaKO8Ki) - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;salahelfarissi](https://github.com/salahelfarissi) - [@&#8203;MichaReiser](https://github.com/MichaReiser) #### Install ruff 0.13.1 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.13.1/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.13.1/ruff-installer.ps1 | iex" ``` #### Download ruff 0.13.1 | File | Platform | Checksum | | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-riscv64gc-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-riscv64gc-unknown-linux-gnu.tar.gz) | RISCV Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-riscv64gc-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.13.0`](https://github.com/astral-sh/ruff/releases/tag/0.13.0) [Compare Source](https://github.com/astral-sh/ruff/compare/0.12.12...0.13.0) #### Release Notes Check out the [blog post](https://astral.sh/blog/ruff-v0.13.0) 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](https://docs.astral.sh/ruff/faq/#how-does-ruff-determine-which-of-my-imports-are-first-party-third-party-etc) 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](https://specifications.freedesktop.org/basedir-spec/latest/) (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: - [`pandas-df-variable-name`](https://docs.astral.sh/ruff/rules/pandas-df-variable-name) (`PD901`) - [`non-pep604-isinstance`](https://docs.astral.sh/ruff/rules/non-pep604-isinstance) (`UP038`) ##### Stabilization The following rules have been stabilized and are no longer in preview: - [`airflow-dag-no-schedule-argument`](https://docs.astral.sh/ruff/rules/airflow-dag-no-schedule-argument) (`AIR002`) - [`airflow3-removal`](https://docs.astral.sh/ruff/rules/airflow3-removal) (`AIR301`) - [`airflow3-moved-to-provider`](https://docs.astral.sh/ruff/rules/airflow3-moved-to-provider) (`AIR302`) - [`airflow3-suggested-update`](https://docs.astral.sh/ruff/rules/airflow3-suggested-update) (`AIR311`) - [`airflow3-suggested-to-move-to-provider`](https://docs.astral.sh/ruff/rules/airflow3-suggested-to-move-to-provider) (`AIR312`) - [`long-sleep-not-forever`](https://docs.astral.sh/ruff/rules/long-sleep-not-forever) (`ASYNC116`) - [`f-string-number-format`](https://docs.astral.sh/ruff/rules/f-string-number-format) (`FURB116`) - [`os-symlink`](https://docs.astral.sh/ruff/rules/os-symlink) (`PTH211`) - [`generic-not-last-base-class`](https://docs.astral.sh/ruff/rules/generic-not-last-base-class) (`PYI059`) - [`redundant-none-literal`](https://docs.astral.sh/ruff/rules/redundant-none-literal) (`PYI061`) - [`pytest-raises-ambiguous-pattern`](https://docs.astral.sh/ruff/rules/pytest-raises-ambiguous-pattern) (`RUF043`) - [`unused-unpacked-variable`](https://docs.astral.sh/ruff/rules/unused-unpacked-variable) (`RUF059`) - [`useless-class-metaclass-type`](https://docs.astral.sh/ruff/rules/useless-class-metaclass-type) (`UP050`) The following behaviors have been stabilized: - [`assert-raises-exception`](https://docs.astral.sh/ruff/rules/assert-raises-exception) (`B017`) now checks for direct calls to `unittest.TestCase.assert_raises` and `pytest.raises` instead of only the context manager forms. - [`missing-trailing-comma`](https://docs.astral.sh/ruff/rules/missing-trailing-comma) (`COM812`) and [`prohibited-trailing-comma`](https://docs.astral.sh/ruff/rules/prohibited-trailing-comma) (`COM819`) now check for trailing commas in PEP 695 type parameter lists. - [`raw-string-in-exception`](https://docs.astral.sh/ruff/rules/raw-string-in-exception) (`EM101`) now also checks for byte strings in exception messages. - [`invalid-mock-access`](https://docs.astral.sh/ruff/rules/invalid-mock-access) (`PGH005`) now checks for `AsyncMock` methods like `not_awaited` in addition to the synchronous variants. - [`useless-import-alias`](https://docs.astral.sh/ruff/rules/useless-import-alias) (`PLC0414`) no longer applies to `__init__.py` files, where it conflicted with one of the suggested fixes for [`unused-import`](https://docs.astral.sh/ruff/rules/unused-import) (`F401`). - [`bidirectional-unicode`](https://docs.astral.sh/ruff/rules/bidirectional-unicode) (`PLE2502`) now also checks for U+061C (Arabic Letter Mark). - The fix for [`multiple-with-statements`](https://docs.astral.sh/ruff/rules/multiple-with-statements) (`SIM117`) is now marked as always safe. ##### Preview features - \[`pyupgrade`] Enable `UP043` in stub files ([#&#8203;20027](https://github.com/astral-sh/ruff/pull/20027)) ##### Bug fixes - \[`pyupgrade`] Apply `UP008` only when the `__class__` cell exists ([#&#8203;19424](https://github.com/astral-sh/ruff/pull/19424)) - \[`ruff`] Fix empty f-string detection in `in-empty-collection` (`RUF060`) ([#&#8203;20249](https://github.com/astral-sh/ruff/pull/20249)) ##### Server - Add support for using uv as an alternative formatter backend ([#&#8203;19665](https://github.com/astral-sh/ruff/pull/19665)) ##### Documentation - \[`pep8-naming`] Fix formatting of `__all__` (`N816`) ([#&#8203;20301](https://github.com/astral-sh/ruff/pull/20301)) #### Contributors - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;CodeMan62](https://github.com/CodeMan62) - [@&#8203;IDrokin117](https://github.com/IDrokin117) - [@&#8203;JelleZijlstra](https://github.com/JelleZijlstra) - [@&#8203;LoicRiegel](https://github.com/LoicRiegel) - [@&#8203;Renkai](https://github.com/Renkai) - [@&#8203;Renkai](https://github.com/Renkai) - [@&#8203;TaKO8Ki](https://github.com/TaKO8Ki) - [@&#8203;amyreese](https://github.com/amyreese) - [@&#8203;carljm](https://github.com/carljm) - [@&#8203;dcreager](https://github.com/dcreager) - [@&#8203;ericmarkmartin](https://github.com/ericmarkmartin) - [@&#8203;ferdnyc](https://github.com/ferdnyc) - [@&#8203;ibraheemdev](https://github.com/ibraheemdev) - [@&#8203;mtshiba](https://github.com/mtshiba) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;onerandomusername](https://github.com/onerandomusername) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;sharkdp](https://github.com/sharkdp) - [@&#8203;thejchap](https://github.com/thejchap) - [@&#8203;zanieb](https://github.com/zanieb) #### Install ruff 0.13.0 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.13.0/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.13.0/ruff-installer.ps1 | iex" ``` #### Download ruff 0.13.0 | File | Platform | Checksum | | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-riscv64gc-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-riscv64gc-unknown-linux-gnu.tar.gz) | RISCV Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-riscv64gc-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.13.0/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.12.12`](https://github.com/astral-sh/ruff/releases/tag/0.12.12) [Compare Source](https://github.com/astral-sh/ruff/compare/0.12.11...0.12.12) #### Release Notes ##### Preview features - Show fixes by default ([#&#8203;19919](https://github.com/astral-sh/ruff/pull/19919)) - \[`airflow`] Convert `DatasetOrTimeSchedule(datasets=...)` to `AssetOrTimeSchedule(assets=...)` (`AIR311`) ([#&#8203;20202](https://github.com/astral-sh/ruff/pull/20202)) - \[`airflow`] Improve the `AIR002` error message ([#&#8203;20173](https://github.com/astral-sh/ruff/pull/20173)) - \[`airflow`] Move `airflow.operators.postgres_operator.Mapping` from `AIR302` to `AIR301` ([#&#8203;20172](https://github.com/astral-sh/ruff/pull/20172)) - \[`flake8-async`] Implement `blocking-input` rule (`ASYNC250`) ([#&#8203;20122](https://github.com/astral-sh/ruff/pull/20122)) - \[`flake8-use-pathlib`] Make `PTH119` and `PTH120` fixes unsafe because they can change behavior ([#&#8203;20118](https://github.com/astral-sh/ruff/pull/20118)) - \[`pylint`] Add U+061C to `PLE2502` ([#&#8203;20106](https://github.com/astral-sh/ruff/pull/20106)) - \[`ruff`] Fix false negative for empty f-strings in `deque` calls (`RUF037`) ([#&#8203;20109](https://github.com/astral-sh/ruff/pull/20109)) ##### Bug fixes - Less confidently mark f-strings as empty when inferring truthiness ([#&#8203;20152](https://github.com/astral-sh/ruff/pull/20152)) - \[`fastapi`] Fix false positive for paths with spaces around parameters (`FAST003`) ([#&#8203;20077](https://github.com/astral-sh/ruff/pull/20077)) - \[`flake8-comprehensions`] Skip `C417` when lambda contains `yield`/`yield from` ([#&#8203;20201](https://github.com/astral-sh/ruff/pull/20201)) - \[`perflint`] Handle tuples in dictionary comprehensions (`PERF403`) ([#&#8203;19934](https://github.com/astral-sh/ruff/pull/19934)) ##### Rule changes - \[`pycodestyle`] Preserve return type annotation for `ParamSpec` (`E731`) ([#&#8203;20108](https://github.com/astral-sh/ruff/pull/20108)) ##### Documentation - Add fix safety sections to docs ([#&#8203;17490](https://github.com/astral-sh/ruff/pull/17490),[#&#8203;17499](https://github.com/astral-sh/ruff/pull/17499)) #### Contributors - [@&#8203;11happy](https://github.com/11happy) - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;Gankra](https://github.com/Gankra) - [@&#8203;JelleZijlstra](https://github.com/JelleZijlstra) - [@&#8203;Kalmaegi](https://github.com/Kalmaegi) - [@&#8203;Lee-W](https://github.com/Lee-W) - [@&#8203;MatthewMckee4](https://github.com/MatthewMckee4) - [@&#8203;PrettyWood](https://github.com/PrettyWood) - [@&#8203;Renkai](https://github.com/Renkai) - [@&#8203;ShaharNaveh](https://github.com/ShaharNaveh) - [@&#8203;amyreese](https://github.com/amyreese) - [@&#8203;carljm](https://github.com/carljm) - [@&#8203;charliermarsh](https://github.com/charliermarsh) - [@&#8203;chirizxc](https://github.com/chirizxc) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;dcreager](https://github.com/dcreager) - [@&#8203;dhruvmanila](https://github.com/dhruvmanila) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;github-actions](https://github.com/github-actions) - [@&#8203;kotx](https://github.com/kotx) - [@&#8203;liortct](https://github.com/liortct) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;s-rigaud](https://github.com/s-rigaud) - [@&#8203;sharkdp](https://github.com/sharkdp) #### Install ruff 0.12.12 ##### Install prebuilt binaries via shell script ```sh 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 ```sh 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](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-riscv64gc-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-riscv64gc-unknown-linux-gnu.tar.gz) | RISCV Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-riscv64gc-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.12/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.12.11`](https://github.com/astral-sh/ruff/releases/tag/0.12.11) [Compare Source](https://github.com/astral-sh/ruff/compare/0.12.10...0.12.11) #### Release Notes ##### Preview features - \[`airflow`] Extend `AIR311` and `AIR312` rules ([#&#8203;20082](https://github.com/astral-sh/ruff/pull/20082)) - \[`airflow`] Replace wrong path `airflow.io.storage` with `airflow.io.store` (`AIR311`) ([#&#8203;20081](https://github.com/astral-sh/ruff/pull/20081)) - \[`flake8-async`] Implement `blocking-http-call-httpx-in-async-function` (`ASYNC212`) ([#&#8203;20091](https://github.com/astral-sh/ruff/pull/20091)) - \[`flake8-logging-format`] Add auto-fix for f-string logging calls (`G004`) ([#&#8203;19303](https://github.com/astral-sh/ruff/pull/19303)) - \[`flake8-use-pathlib`] Add autofix for `PTH211` ([#&#8203;20009](https://github.com/astral-sh/ruff/pull/20009)) - \[`flake8-use-pathlib`] Make `PTH100` fix unsafe because it can change behavior ([#&#8203;20100](https://github.com/astral-sh/ruff/pull/20100)) ##### Bug fixes - \[`pyflakes`, `pylint`] Fix false positives caused by `__class__` cell handling (`F841`, `PLE0117`) ([#&#8203;20048](https://github.com/astral-sh/ruff/pull/20048)) - \[`pyflakes`] Fix `allowed-unused-imports` matching for top-level modules (`F401`) ([#&#8203;20115](https://github.com/astral-sh/ruff/pull/20115)) - \[`ruff`] Fix false positive for t-strings in `default-factory-kwarg` (`RUF026`) ([#&#8203;20032](https://github.com/astral-sh/ruff/pull/20032)) - \[`ruff`] Preserve relative whitespace in multi-line expressions (`RUF033`) ([#&#8203;19647](https://github.com/astral-sh/ruff/pull/19647)) ##### Rule changes - \[`ruff`] Handle empty t-strings in `unnecessary-empty-iterable-within-deque-call` (`RUF037`) ([#&#8203;20045](https://github.com/astral-sh/ruff/pull/20045)) ##### Documentation - Fix incorrect `D413` links in docstrings convention FAQ ([#&#8203;20089](https://github.com/astral-sh/ruff/pull/20089)) - \[`flake8-use-pathlib`] Update links to the table showing the correspondence between `os` and `pathlib` ([#&#8203;20103](https://github.com/astral-sh/ruff/pull/20103)) #### Contributors - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;Avasam](https://github.com/Avasam) - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;Gankra](https://github.com/Gankra) - [@&#8203;Glyphack](https://github.com/Glyphack) - [@&#8203;JelleZijlstra](https://github.com/JelleZijlstra) - [@&#8203;Lee-W](https://github.com/Lee-W) - [@&#8203;MatthewMckee4](https://github.com/MatthewMckee4) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;PrettyWood](https://github.com/PrettyWood) - [@&#8203;Renkai](https://github.com/Renkai) - [@&#8203;TaKO8Ki](https://github.com/TaKO8Ki) - [@&#8203;amyreese](https://github.com/amyreese) - [@&#8203;carljm](https://github.com/carljm) - [@&#8203;chirizxc](https://github.com/chirizxc) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;dhruvmanila](https://github.com/dhruvmanila) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;github-actions](https://github.com/github-actions) - [@&#8203;hamirmahal](https://github.com/hamirmahal) - [@&#8203;ibraheemdev](https://github.com/ibraheemdev) - [@&#8203;leandrobbraga](https://github.com/leandrobbraga) - [@&#8203;maxmynter](https://github.com/maxmynter) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;sharkdp](https://github.com/sharkdp) - [@&#8203;vivster7](https://github.com/vivster7) #### Install ruff 0.12.11 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.11/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.12.11/ruff-installer.ps1 | iex" ``` #### Download ruff 0.12.11 | File | Platform | Checksum | | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-riscv64gc-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-riscv64gc-unknown-linux-gnu.tar.gz) | RISCV Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-riscv64gc-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.11/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.12.10`](https://github.com/astral-sh/ruff/releases/tag/0.12.10) [Compare Source](https://github.com/astral-sh/ruff/compare/0.12.9...0.12.10) #### Release Notes ##### Preview features - \[`flake8-simplify`] Implement fix for `maxsplit` without separator (`SIM905`) ([#&#8203;19851](https://github.com/astral-sh/ruff/pull/19851)) - \[`flake8-use-pathlib`] Add fixes for `PTH102` and `PTH103` ([#&#8203;19514](https://github.com/astral-sh/ruff/pull/19514)) ##### Bug fixes - \[`isort`] Handle multiple continuation lines after module docstring (`I002`) ([#&#8203;19818](https://github.com/astral-sh/ruff/pull/19818)) - \[`pyupgrade`] Avoid reporting `__future__` features as unnecessary when they are used (`UP010`) ([#&#8203;19769](https://github.com/astral-sh/ruff/pull/19769)) - \[`pyupgrade`] Handle nested `Optional`s (`UP045`) ([#&#8203;19770](https://github.com/astral-sh/ruff/pull/19770)) ##### Rule changes - \[`pycodestyle`] Make `E731` fix unsafe instead of display-only for class assignments ([#&#8203;19700](https://github.com/astral-sh/ruff/pull/19700)) - \[`pyflakes`] Add secondary annotation showing previous definition (`F811`) ([#&#8203;19900](https://github.com/astral-sh/ruff/pull/19900)) ##### Documentation - Fix description of global config file discovery strategy ([#&#8203;19188](https://github.com/astral-sh/ruff/pull/19188)) - Update outdated links to <https://typing.python.org/en/latest/source/stubs.html> ([#&#8203;19992](https://github.com/astral-sh/ruff/pull/19992)) - \[`flake8-annotations`] Remove unused import in example (`ANN401`) ([#&#8203;20000](https://github.com/astral-sh/ruff/pull/20000)) #### Contributors - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;Avasam](https://github.com/Avasam) - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;Cjkjvfnby](https://github.com/Cjkjvfnby) - [@&#8203;Gankra](https://github.com/Gankra) - [@&#8203;IDrokin117](https://github.com/IDrokin117) - [@&#8203;MatthewMckee4](https://github.com/MatthewMckee4) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;PrettyWood](https://github.com/PrettyWood) - [@&#8203;RazerM](https://github.com/RazerM) - [@&#8203;carljm](https://github.com/carljm) - [@&#8203;chirizxc](https://github.com/chirizxc) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;dcreager](https://github.com/dcreager) - [@&#8203;dhruvmanila](https://github.com/dhruvmanila) - [@&#8203;ericmarkmartin](https://github.com/ericmarkmartin) - [@&#8203;github-actions](https://github.com/github-actions) - [@&#8203;gkowzan](https://github.com/gkowzan) - [@&#8203;leandrobbraga](https://github.com/leandrobbraga) - [@&#8203;mtshiba](https://github.com/mtshiba) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;sharkdp](https://github.com/sharkdp) - [@&#8203;theammir](https://github.com/theammir) #### Install ruff 0.12.10 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.10/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.12.10/ruff-installer.ps1 | iex" ``` #### Download ruff 0.12.10 | File | Platform | Checksum | | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-riscv64gc-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-riscv64gc-unknown-linux-gnu.tar.gz) | RISCV Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-riscv64gc-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.10/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.12.9`](https://github.com/astral-sh/ruff/releases/tag/0.12.9) [Compare Source](https://github.com/astral-sh/ruff/compare/0.12.8...0.12.9) #### Release Notes ##### Preview features - \[`airflow`] Add check for `airflow.secrets.cache.SecretCache` (`AIR301`) ([#&#8203;17707](https://github.com/astral-sh/ruff/pull/17707)) - \[`ruff`] Offer a safe fix for multi-digit zeros (`RUF064`) ([#&#8203;19847](https://github.com/astral-sh/ruff/pull/19847)) ##### Bug fixes - \[`flake8-blind-except`] Fix `BLE001` false-positive on `raise ... from None` ([#&#8203;19755](https://github.com/astral-sh/ruff/pull/19755)) - \[`flake8-comprehensions`] Fix false positive for `C420` with attribute, subscript, or slice assignment targets ([#&#8203;19513](https://github.com/astral-sh/ruff/pull/19513)) - \[`flake8-simplify`] Fix handling of U+001C..U+001F whitespace (`SIM905`) ([#&#8203;19849](https://github.com/astral-sh/ruff/pull/19849)) ##### Rule changes - \[`pylint`] Use lowercase hex characters to match the formatter (`PLE2513`) ([#&#8203;19808](https://github.com/astral-sh/ruff/pull/19808)) ##### Documentation - Fix `lint.future-annotations` link ([#&#8203;19876](https://github.com/astral-sh/ruff/pull/19876)) ##### Other changes - Build `riscv64` binaries for release ([#&#8203;19819](https://github.com/astral-sh/ruff/pull/19819)) - Add rule code to error description in GitLab output ([#&#8203;19896](https://github.com/astral-sh/ruff/pull/19896)) - Improve rendering of the `full` output format ([#&#8203;19415](https://github.com/astral-sh/ruff/pull/19415)) Below is an example diff for [`F401`](https://docs.astral.sh/ruff/rules/unused-import/): ```diff -unused.py:8:19: F401 [*] `pathlib` imported but unused +F401 [*] `pathlib` imported but unused + --> unused.py:8:19 | 7 | # Unused, _not_ marked as required (due to the alias). 8 | import pathlib as non_alias - | ^^^^^^^^^ F401 + | ^^^^^^^^^ 9 | 10 | # Unused, marked as required. | - = help: Remove unused import: `pathlib` +help: Remove unused import: `pathlib` ``` For now, the primary difference is the movement of the filename, line number, and column information to a second line in the header. This new representation will allow us to make further additions to Ruff's diagnostics, such as adding sub-diagnostics and multiple annotations to the same snippet. #### Contributors - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;Gankra](https://github.com/Gankra) - [@&#8203;MatthewMckee4](https://github.com/MatthewMckee4) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;PrettyWood](https://github.com/PrettyWood) - [@&#8203;RazerM](https://github.com/RazerM) - [@&#8203;carljm](https://github.com/carljm) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;dcreager](https://github.com/dcreager) - [@&#8203;deliro](https://github.com/deliro) - [@&#8203;dhruvmanila](https://github.com/dhruvmanila) - [@&#8203;ember91](https://github.com/ember91) - [@&#8203;ffgan](https://github.com/ffgan) - [@&#8203;harupy](https://github.com/harupy) - [@&#8203;ibraheemdev](https://github.com/ibraheemdev) - [@&#8203;mtshiba](https://github.com/mtshiba) - [@&#8203;nguu0123](https://github.com/nguu0123) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;oconnor663](https://github.com/oconnor663) - [@&#8203;prabhusneha](https://github.com/prabhusneha) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;thejchap](https://github.com/thejchap) #### Install ruff 0.12.9 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.9/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.12.9/ruff-installer.ps1 | iex" ``` #### Download ruff 0.12.9 | File | Platform | Checksum | | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-riscv64gc-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-riscv64gc-unknown-linux-gnu.tar.gz) | RISCV Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-riscv64gc-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.9/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.12.8`](https://github.com/astral-sh/ruff/releases/tag/0.12.8) [Compare Source](https://github.com/astral-sh/ruff/compare/0.12.7...0.12.8) #### Release Notes ##### Preview features - \[`flake8-use-pathlib`] Expand `PTH201` to check all `PurePath` subclasses ([#&#8203;19440](https://github.com/astral-sh/ruff/pull/19440)) ##### Bug fixes - \[`flake8-blind-except`] Change `BLE001` to correctly parse exception tuples ([#&#8203;19747](https://github.com/astral-sh/ruff/pull/19747)) - \[`flake8-errmsg`] Exclude `typing.cast` from `EM101` ([#&#8203;19656](https://github.com/astral-sh/ruff/pull/19656)) - \[`flake8-simplify`] Fix raw string handling in `SIM905` for embedded quotes ([#&#8203;19591](https://github.com/astral-sh/ruff/pull/19591)) - \[`flake8-import-conventions`] Avoid false positives for NFKC-normalized `__debug__` import aliases in `ICN001` ([#&#8203;19411](https://github.com/astral-sh/ruff/pull/19411)) - \[`isort`] Fix syntax error after docstring ending with backslash (`I002`) ([#&#8203;19505](https://github.com/astral-sh/ruff/pull/19505)) - \[`pylint`] Mark `PLC0207` fixes as unsafe when `*args` unpacking is present ([#&#8203;19679](https://github.com/astral-sh/ruff/pull/19679)) - \[`pyupgrade`] Prevent infinite loop with `I002` (`UP010`, `UP035`) ([#&#8203;19413](https://github.com/astral-sh/ruff/pull/19413)) - \[`ruff`] Parenthesize generator expressions in f-strings (`RUF010`) ([#&#8203;19434](https://github.com/astral-sh/ruff/pull/19434)) ##### Rule changes - \[`eradicate`] Don't flag `pyrefly` pragmas as unused code (`ERA001`) ([#&#8203;19731](https://github.com/astral-sh/ruff/pull/19731)) ##### Documentation - Replace "associative" with "commutative" in docs for `RUF036` ([#&#8203;19706](https://github.com/astral-sh/ruff/pull/19706)) - Fix copy and line separator colors in dark mode ([#&#8203;19630](https://github.com/astral-sh/ruff/pull/19630)) - Fix link to `typing` documentation ([#&#8203;19648](https://github.com/astral-sh/ruff/pull/19648)) - \[`refurb`] Make more examples error out-of-the-box ([#&#8203;19695](https://github.com/astral-sh/ruff/pull/19695),[#&#8203;19673](https://github.com/astral-sh/ruff/pull/19673),[#&#8203;19672](https://github.com/astral-sh/ruff/pull/19672)) ##### Other changes - Include column numbers in GitLab output format ([#&#8203;19708](https://github.com/astral-sh/ruff/pull/19708)) - Always expand tabs to four spaces in diagnostics ([#&#8203;19618](https://github.com/astral-sh/ruff/pull/19618)) - Update pre-commit's `ruff` id ([#&#8203;19654](https://github.com/astral-sh/ruff/pull/19654)) #### Contributors - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;MatthewMckee4](https://github.com/MatthewMckee4) - [@&#8203;MeGaGiGaGon](https://github.com/MeGaGiGaGon) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;UnboundVariable](https://github.com/UnboundVariable) - [@&#8203;cristian64](https://github.com/cristian64) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;dcreager](https://github.com/dcreager) - [@&#8203;deliro](https://github.com/deliro) - [@&#8203;dhruvmanila](https://github.com/dhruvmanila) - [@&#8203;github-actions](https://github.com/github-actions) - [@&#8203;harshil21](https://github.com/harshil21) - [@&#8203;hunterhogan](https://github.com/hunterhogan) - [@&#8203;ibraheemdev](https://github.com/ibraheemdev) - [@&#8203;jimhoekstra](https://github.com/jimhoekstra) - [@&#8203;jscanvic](https://github.com/jscanvic) - [@&#8203;leandrobbraga](https://github.com/leandrobbraga) - [@&#8203;mtshiba](https://github.com/mtshiba) - [@&#8203;ngroman](https://github.com/ngroman) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;sharkdp](https://github.com/sharkdp) - [@&#8203;silamon](https://github.com/silamon) #### Install ruff 0.12.8 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.8/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.12.8/ruff-installer.ps1 | iex" ``` #### Download ruff 0.12.8 | File | Platform | Checksum | | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.8/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.12.7`](https://github.com/astral-sh/ruff/releases/tag/0.12.7) #### Release Notes 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. #### 0.12.6 Release Notes ##### Preview features - \[`flake8-commas`] Add support for trailing comma checks in type parameter lists (`COM812`, `COM819`) ([#&#8203;19390](https://github.com/astral-sh/ruff/pull/19390)) - \[`pylint`] Implement auto-fix for `missing-maxsplit-arg` (`PLC0207`) ([#&#8203;19387](https://github.com/astral-sh/ruff/pull/19387)) - \[`ruff`] Offer fixes for `RUF039` in more cases ([#&#8203;19065](https://github.com/astral-sh/ruff/pull/19065)) ##### Bug fixes - Support `.pyi` files in ruff analyze graph ([#&#8203;19611](https://github.com/astral-sh/ruff/pull/19611)) - \[`flake8-pyi`] Preserve inline comment in ellipsis removal (`PYI013`) ([#&#8203;19399](https://github.com/astral-sh/ruff/pull/19399)) - \[`perflint`] Ignore rule if target is `global` or `nonlocal` (`PERF401`) ([#&#8203;19539](https://github.com/astral-sh/ruff/pull/19539)) - \[`pyupgrade`] Fix `UP030` to avoid modifying double curly braces in format strings ([#&#8203;19378](https://github.com/astral-sh/ruff/pull/19378)) - \[`refurb`] Ignore decorated functions for `FURB118` ([#&#8203;19339](https://github.com/astral-sh/ruff/pull/19339)) - \[`refurb`] Mark `int` and `bool` cases for `Decimal.from_float` as safe fixes (`FURB164`) ([#&#8203;19468](https://github.com/astral-sh/ruff/pull/19468)) - \[`ruff`] Fix `RUF033` for named default expressions ([#&#8203;19115](https://github.com/astral-sh/ruff/pull/19115)) ##### Rule changes - \[`flake8-blind-except`] Change `BLE001` to permit `logging.critical(..., exc_info=True)` ([#&#8203;19520](https://github.com/astral-sh/ruff/pull/19520)) ##### Performance - Add support for specifying minimum dots in detected string imports ([#&#8203;19538](https://github.com/astral-sh/ruff/pull/19538)) #### Contributors - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;CodeMan62](https://github.com/CodeMan62) - [@&#8203;DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) - [@&#8203;IDrokin117](https://github.com/IDrokin117) - [@&#8203;Luunynliny](https://github.com/Luunynliny) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;UnboundVariable](https://github.com/UnboundVariable) - [@&#8203;carljm](https://github.com/carljm) - [@&#8203;charliermarsh](https://github.com/charliermarsh) - [@&#8203;clockback](https://github.com/clockback) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;dcreager](https://github.com/dcreager) - [@&#8203;dhruvmanila](https://github.com/dhruvmanila) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;github-actions](https://github.com/github-actions) - [@&#8203;junhsonjb](https://github.com/junhsonjb) - [@&#8203;mtshiba](https://github.com/mtshiba) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;robsdedude](https://github.com/robsdedude) - [@&#8203;sharkdp](https://github.com/sharkdp) - [@&#8203;thejchap](https://github.com/thejchap) #### Install ruff 0.12.7 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.7/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.12.7/ruff-installer.ps1 | iex" ``` #### Download ruff 0.12.7 | File | Platform | Checksum | | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.7/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.12.5`](https://github.com/astral-sh/ruff/releases/tag/0.12.5) [Compare Source](https://github.com/astral-sh/ruff/compare/0.12.4...0.12.5) #### Release Notes ##### Preview features - \[`flake8-use-pathlib`] Add autofix for `PTH101`, `PTH104`, `PTH105`, `PTH121` ([#&#8203;19404](https://github.com/astral-sh/ruff/pull/19404)) - \[`ruff`] Support byte strings (`RUF055`) ([#&#8203;18926](https://github.com/astral-sh/ruff/pull/18926)) ##### Bug fixes - Fix `unreachable` panic in parser ([#&#8203;19183](https://github.com/astral-sh/ruff/pull/19183)) - \[`flake8-pyi`] Skip fix if all `Union` members are `None` (`PYI016`) ([#&#8203;19416](https://github.com/astral-sh/ruff/pull/19416)) - \[`perflint`] Parenthesize generator expressions (`PERF401`) ([#&#8203;19325](https://github.com/astral-sh/ruff/pull/19325)) - \[`pylint`] Handle empty comments after line continuation (`PLR2044`) ([#&#8203;19405](https://github.com/astral-sh/ruff/pull/19405)) ##### Rule changes - \[`pep8-naming`] Fix `N802` false positives for `CGIHTTPRequestHandler` and `SimpleHTTPRequestHandler` ([#&#8203;19432](https://github.com/astral-sh/ruff/pull/19432)) #### Contributors - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;CodeMan62](https://github.com/CodeMan62) - [@&#8203;Gankra](https://github.com/Gankra) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;UnboundVariable](https://github.com/UnboundVariable) - [@&#8203;chirizxc](https://github.com/chirizxc) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;dcreager](https://github.com/dcreager) - [@&#8203;dhruvmanila](https://github.com/dhruvmanila) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;github-actions](https://github.com/github-actions) - [@&#8203;ibraheemdev](https://github.com/ibraheemdev) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;oconnor663](https://github.com/oconnor663) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;sharkdp](https://github.com/sharkdp) - [@&#8203;soundsonacid](https://github.com/soundsonacid) - [@&#8203;thejchap](https://github.com/thejchap) #### Install ruff 0.12.5 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.5/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.12.5/ruff-installer.ps1 | iex" ``` #### Download ruff 0.12.5 | File | Platform | Checksum | | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.5/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.12.4`](https://github.com/astral-sh/ruff/releases/tag/0.12.4) [Compare Source](https://github.com/astral-sh/ruff/compare/0.12.3...0.12.4) #### Release Notes ##### 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://github.com/astral-sh/ruff/pull/19100)) - \[`flake8-use-pathlib`] Add autofix for `PTH109` ([#&#8203;19245](https://github.com/astral-sh/ruff/pull/19245)) - \[`pylint`] Detect indirect `pathlib.Path` usages for `unspecified-encoding` (`PLW1514`) ([#&#8203;19304](https://github.com/astral-sh/ruff/pull/19304)) ##### Bug fixes - \[`flake8-bugbear`] Fix `B017` false negatives for keyword exception arguments ([#&#8203;19217](https://github.com/astral-sh/ruff/pull/19217)) - \[`flake8-use-pathlib`] Fix false negative on direct `Path()` instantiation (`PTH210`) ([#&#8203;19388](https://github.com/astral-sh/ruff/pull/19388)) - \[`flake8-django`] Fix `DJ008` false positive for abstract models with type-annotated `abstract` field ([#&#8203;19221](https://github.com/astral-sh/ruff/pull/19221)) - \[`isort`] Fix `I002` import insertion after docstring with multiple string statements ([#&#8203;19222](https://github.com/astral-sh/ruff/pull/19222)) - \[`isort`] Treat form feed as valid whitespace before a semicolon ([#&#8203;19343](https://github.com/astral-sh/ruff/pull/19343)) - \[`pydoclint`] Fix `SyntaxError` from fixes with line continuations (`D201`, `D202`) ([#&#8203;19246](https://github.com/astral-sh/ruff/pull/19246)) - \[`refurb`] `FURB164` fix should validate arguments and should usually be marked unsafe ([#&#8203;19136](https://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://github.com/astral-sh/ruff/pull/19331)) - \[`pep8_naming`] Avoid false positives on standard library functions with uppercase names (`N802`) ([#&#8203;18907](https://github.com/astral-sh/ruff/pull/18907)) - \[`pycodestyle`] Handle brace escapes for t-strings in logical lines ([#&#8203;19358](https://github.com/astral-sh/ruff/pull/19358)) - \[`pylint`] Extend invalid string character rules to include t-strings ([#&#8203;19355](https://github.com/astral-sh/ruff/pull/19355)) - \[`ruff`] Allow `strict` kwarg when checking for `starmap-zip` (`RUF058`) in Python 3.14+ ([#&#8203;19333](https://github.com/astral-sh/ruff/pull/19333)) ##### Documentation - \[`flake8-type-checking`] Make `TC010` docs example more realistic ([#&#8203;19356](https://github.com/astral-sh/ruff/pull/19356)) - Make more documentation examples error out-of-the-box ([#&#8203;19288](https://github.com/astral-sh/ruff/pull/19288),[#&#8203;19272](https://github.com/astral-sh/ruff/pull/19272),[#&#8203;19291](https://github.com/astral-sh/ruff/pull/19291),[#&#8203;19296](https://github.com/astral-sh/ruff/pull/19296),[#&#8203;19292](https://github.com/astral-sh/ruff/pull/19292),[#&#8203;19295](https://github.com/astral-sh/ruff/pull/19295),[#&#8203;19297](https://github.com/astral-sh/ruff/pull/19297),[#&#8203;19309](https://github.com/astral-sh/ruff/pull/19309)) #### Contributors - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;Gankra](https://github.com/Gankra) - [@&#8203;MatthewMckee4](https://github.com/MatthewMckee4) - [@&#8203;MeGaGiGaGon](https://github.com/MeGaGiGaGon) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;UnboundVariable](https://github.com/UnboundVariable) - [@&#8203;chirizxc](https://github.com/chirizxc) - [@&#8203;close2code-palm](https://github.com/close2code-palm) - [@&#8203;corneliusroemer](https://github.com/corneliusroemer) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;dcreager](https://github.com/dcreager) - [@&#8203;dhruvmanila](https://github.com/dhruvmanila) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;github-actions](https://github.com/github-actions) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;oconnor663](https://github.com/oconnor663) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;sharkdp](https://github.com/sharkdp) - [@&#8203;soundsonacid](https://github.com/soundsonacid) - [@&#8203;w0nder1ng](https://github.com/w0nder1ng) - [@&#8203;zanieb](https://github.com/zanieb) #### Install ruff 0.12.4 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.4/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.12.4/ruff-installer.ps1 | iex" ``` #### Download ruff 0.12.4 | File | Platform | Checksum | | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.4/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.12.3`](https://github.com/astral-sh/ruff/releases/tag/0.12.3) [Compare Source](https://github.com/astral-sh/ruff/compare/0.12.2...0.12.3) #### Release Notes ##### Preview features - \[`flake8-bugbear`] Support non-context-manager calls in `B017` ([#&#8203;19063](https://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://github.com/astral-sh/ruff/pull/19213)) - \[`flake8-use-pathlib`] Add autofixes for `PTH203`, `PTH204`, `PTH205` ([#&#8203;18922](https://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://github.com/astral-sh/ruff/pull/18433)) - Treat form feed as valid whitespace before a line continuation ([#&#8203;19220](https://github.com/astral-sh/ruff/pull/19220)) - \[`flake8-type-checking`] Fix syntax error introduced by fix (`TC008`) ([#&#8203;19150](https://github.com/astral-sh/ruff/pull/19150)) - \[`pyupgrade`] Keyword arguments in `super` should suppress the `UP008` fix ([#&#8203;19131](https://github.com/astral-sh/ruff/pull/19131)) ##### Documentation - \[`flake8-pyi`] Make example error out-of-the-box (`PYI007`, `PYI008`) ([#&#8203;19103](https://github.com/astral-sh/ruff/pull/19103)) - \[`flake8-simplify`] Make example error out-of-the-box (`SIM116`) ([#&#8203;19111](https://github.com/astral-sh/ruff/pull/19111)) - \[`flake8-type-checking`] Make example error out-of-the-box (`TC001`) ([#&#8203;19151](https://github.com/astral-sh/ruff/pull/19151)) - \[`flake8-use-pathlib`] Make example error out-of-the-box (`PTH210`) ([#&#8203;19189](https://github.com/astral-sh/ruff/pull/19189)) - \[`pycodestyle`] Make example error out-of-the-box (`E272`) ([#&#8203;19191](https://github.com/astral-sh/ruff/pull/19191)) - \[`pycodestyle`] Make example not raise unnecessary `SyntaxError` (`E114`) ([#&#8203;19190](https://github.com/astral-sh/ruff/pull/19190)) - \[`pydoclint`] Make example error out-of-the-box (`DOC501`) ([#&#8203;19218](https://github.com/astral-sh/ruff/pull/19218)) - \[`pylint`, `pyupgrade`] Fix syntax errors in examples (`PLW1501`, `UP028`) ([#&#8203;19127](https://github.com/astral-sh/ruff/pull/19127)) - \[`pylint`] Update `missing-maxsplit-arg` docs and error to suggest proper usage (`PLC0207`) ([#&#8203;18949](https://github.com/astral-sh/ruff/pull/18949)) - \[`flake8-bandit`] Make example error out-of-the-box (`S412`) ([#&#8203;19241](https://github.com/astral-sh/ruff/pull/19241)) #### Contributors - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;Gankra](https://github.com/Gankra) - [@&#8203;InSyncWithFoo](https://github.com/InSyncWithFoo) - [@&#8203;LaBatata101](https://github.com/LaBatata101) - [@&#8203;MatthewMckee4](https://github.com/MatthewMckee4) - [@&#8203;MeGaGiGaGon](https://github.com/MeGaGiGaGon) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;NamelessGO](https://github.com/NamelessGO) - [@&#8203;UnboundVariable](https://github.com/UnboundVariable) - [@&#8203;abhijeetbodas2001](https://github.com/abhijeetbodas2001) - [@&#8203;carljm](https://github.com/carljm) - [@&#8203;charliermarsh](https://github.com/charliermarsh) - [@&#8203;chirizxc](https://github.com/chirizxc) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;dhruvmanila](https://github.com/dhruvmanila) - [@&#8203;fdosani](https://github.com/fdosani) - [@&#8203;github-actions](https://github.com/github-actions) - [@&#8203;ibraheemdev](https://github.com/ibraheemdev) - [@&#8203;iyakushev](https://github.com/iyakushev) - [@&#8203;junhsonjb](https://github.com/junhsonjb) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;sharkdp](https://github.com/sharkdp) - [@&#8203;soundsonacid](https://github.com/soundsonacid) - [@&#8203;thejchap](https://github.com/thejchap) - [@&#8203;zanieb](https://github.com/zanieb) #### Install ruff 0.12.3 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.3/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.12.3/ruff-installer.ps1 | iex" ``` #### Download ruff 0.12.3 | File | Platform | Checksum | | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.3/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.12.2`](https://github.com/astral-sh/ruff/releases/tag/0.12.2) [Compare Source](https://github.com/astral-sh/ruff/compare/0.12.1...0.12.2) #### Release Notes ##### Preview features - \[`flake8-pyi`] Expand `Optional[A]` to `A | None` (`PYI016`) ([#&#8203;18572](https://github.com/astral-sh/ruff/pull/18572)) - \[`pyupgrade`] Mark `UP008` fix safe if no comments are in range ([#&#8203;18683](https://github.com/astral-sh/ruff/pull/18683)) ##### Bug fixes - \[`flake8-comprehensions`] Fix `C420` to prepend whitespace when needed ([#&#8203;18616](https://github.com/astral-sh/ruff/pull/18616)) - \[`perflint`] Fix `PERF403` panic on attribute or subscription loop variable ([#&#8203;19042](https://github.com/astral-sh/ruff/pull/19042)) - \[`pydocstyle`] Fix `D413` infinite loop for parenthesized docstring ([#&#8203;18930](https://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://github.com/astral-sh/ruff/pull/18678)) - \[`refurb`] Fix false positive on empty tuples (`FURB168`) ([#&#8203;19058](https://github.com/astral-sh/ruff/pull/19058)) - \[`ruff`] Allow more `field` calls from `attrs` (`RUF009`) ([#&#8203;19021](https://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://github.com/astral-sh/ruff/pull/18899)) ##### Rule changes - \[`flake8-executable`] Allow `uvx` in shebang line (`EXE003`) ([#&#8203;18967](https://github.com/astral-sh/ruff/pull/18967)) - \[`pandas`] Avoid flagging `PD002` if `pandas` is not imported ([#&#8203;18963](https://github.com/astral-sh/ruff/pull/18963)) - \[`pyupgrade`] Avoid PEP-604 unions with `typing.NamedTuple` (`UP007`, `UP045`) ([#&#8203;18682](https://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://github.com/astral-sh/ruff/pull/18733)) - Fix description of the `format.skip-magic-trailing-comma` example ([#&#8203;19095](https://github.com/astral-sh/ruff/pull/19095)) - \[`airflow`] Make `AIR302` example error out-of-the-box ([#&#8203;18988](https://github.com/astral-sh/ruff/pull/18988)) - \[`airflow`] Make `AIR312` example error out-of-the-box ([#&#8203;18989](https://github.com/astral-sh/ruff/pull/18989)) - \[`flake8-annotations`] Make `ANN401` example error out-of-the-box ([#&#8203;18974](https://github.com/astral-sh/ruff/pull/18974)) - \[`flake8-async`] Make `ASYNC100` example error out-of-the-box ([#&#8203;18993](https://github.com/astral-sh/ruff/pull/18993)) - \[`flake8-async`] Make `ASYNC105` example error out-of-the-box ([#&#8203;19002](https://github.com/astral-sh/ruff/pull/19002)) - \[`flake8-async`] Make `ASYNC110` example error out-of-the-box ([#&#8203;18975](https://github.com/astral-sh/ruff/pull/18975)) - \[`flake8-async`] Make `ASYNC210` example error out-of-the-box ([#&#8203;18977](https://github.com/astral-sh/ruff/pull/18977)) - \[`flake8-async`] Make `ASYNC220`, `ASYNC221`, and `ASYNC222` examples error out-of-the-box ([#&#8203;18978](https://github.com/astral-sh/ruff/pull/18978)) - \[`flake8-async`] Make `ASYNC251` example error out-of-the-box ([#&#8203;18990](https://github.com/astral-sh/ruff/pull/18990)) - \[`flake8-bandit`] Make `S201` example error out-of-the-box ([#&#8203;19017](https://github.com/astral-sh/ruff/pull/19017)) - \[`flake8-bandit`] Make `S604` and `S609` examples error out-of-the-box ([#&#8203;19049](https://github.com/astral-sh/ruff/pull/19049)) - \[`flake8-bugbear`] Make `B028` example error out-of-the-box ([#&#8203;19054](https://github.com/astral-sh/ruff/pull/19054)) - \[`flake8-bugbear`] Make `B911` example error out-of-the-box ([#&#8203;19051](https://github.com/astral-sh/ruff/pull/19051)) - \[`flake8-datetimez`] Make `DTZ011` example error out-of-the-box ([#&#8203;19055](https://github.com/astral-sh/ruff/pull/19055)) - \[`flake8-datetimez`] Make `DTZ901` example error out-of-the-box ([#&#8203;19056](https://github.com/astral-sh/ruff/pull/19056)) - \[`flake8-pyi`] Make `PYI032` example error out-of-the-box ([#&#8203;19061](https://github.com/astral-sh/ruff/pull/19061)) - \[`flake8-pyi`] Make example error out-of-the-box (`PYI014`, `PYI015`) ([#&#8203;19097](https://github.com/astral-sh/ruff/pull/19097)) - \[`flake8-pyi`] Make example error out-of-the-box (`PYI042`) ([#&#8203;19101](https://github.com/astral-sh/ruff/pull/19101)) - \[`flake8-pyi`] Make example error out-of-the-box (`PYI059`) ([#&#8203;19080](https://github.com/astral-sh/ruff/pull/19080)) - \[`flake8-pyi`] Make example error out-of-the-box (`PYI062`) ([#&#8203;19079](https://github.com/astral-sh/ruff/pull/19079)) - \[`flake8-pytest-style`] Make example error out-of-the-box (`PT023`) ([#&#8203;19104](https://github.com/astral-sh/ruff/pull/19104)) - \[`flake8-pytest-style`] Make example error out-of-the-box (`PT030`) ([#&#8203;19105](https://github.com/astral-sh/ruff/pull/19105)) - \[`flake8-quotes`] Make example error out-of-the-box (`Q003`) ([#&#8203;19106](https://github.com/astral-sh/ruff/pull/19106)) - \[`flake8-simplify`] Make example error out-of-the-box (`SIM110`) ([#&#8203;19113](https://github.com/astral-sh/ruff/pull/19113)) - \[`flake8-simplify`] Make example error out-of-the-box (`SIM113`) ([#&#8203;19109](https://github.com/astral-sh/ruff/pull/19109)) - \[`flake8-simplify`] Make example error out-of-the-box (`SIM401`) ([#&#8203;19110](https://github.com/astral-sh/ruff/pull/19110)) - \[`pyflakes`] Fix backslash in docs (`F621`) ([#&#8203;19098](https://github.com/astral-sh/ruff/pull/19098)) - \[`pylint`] Fix `PLC0415` example ([#&#8203;18970](https://github.com/astral-sh/ruff/pull/18970)) #### Contributors - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;Avasam](https://github.com/Avasam) - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;CodeMan62](https://github.com/CodeMan62) - [@&#8203;Gankra](https://github.com/Gankra) - [@&#8203;InSyncWithFoo](https://github.com/InSyncWithFoo) - [@&#8203;LaBatata101](https://github.com/LaBatata101) - [@&#8203;LeanderCS](https://github.com/LeanderCS) - [@&#8203;MatthewMckee4](https://github.com/MatthewMckee4) - [@&#8203;MeGaGiGaGon](https://github.com/MeGaGiGaGon) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;NamelessGO](https://github.com/NamelessGO) - [@&#8203;adriencaccia](https://github.com/adriencaccia) - [@&#8203;carljm](https://github.com/carljm) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;dcreager](https://github.com/dcreager) - [@&#8203;dhruvmanila](https://github.com/dhruvmanila) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;github-actions](https://github.com/github-actions) - [@&#8203;ibraheemdev](https://github.com/ibraheemdev) - [@&#8203;jordyjwilliams](https://github.com/jordyjwilliams) - [@&#8203;lubaskinc0de](https://github.com/lubaskinc0de) - [@&#8203;med1844](https://github.com/med1844) - [@&#8203;mtshiba](https://github.com/mtshiba) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;robsdedude](https://github.com/robsdedude) - [@&#8203;sharkdp](https://github.com/sharkdp) - [@&#8203;yairp03](https://github.com/yairp03) - [@&#8203;zanieb](https://github.com/zanieb) #### Install ruff 0.12.2 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.2/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.12.2/ruff-installer.ps1 | iex" ``` #### Download ruff 0.12.2 | File | Platform | Checksum | | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.2/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.12.1`](https://github.com/astral-sh/ruff/releases/tag/0.12.1) [Compare Source](https://github.com/astral-sh/ruff/compare/0.12.0...0.12.1) #### Release Notes ##### Preview features - \[`flake8-errmsg`] Extend `EM101` to support byte strings ([#&#8203;18867](https://github.com/astral-sh/ruff/pull/18867)) - \[`flake8-use-pathlib`] Add autofix for `PTH202` ([#&#8203;18763](https://github.com/astral-sh/ruff/pull/18763)) - \[`pygrep-hooks`] Add `AsyncMock` methods to `invalid-mock-access` (`PGH005`) ([#&#8203;18547](https://github.com/astral-sh/ruff/pull/18547)) - \[`pylint`] Ignore `__init__.py` files in (`PLC0414`) ([#&#8203;18400](https://github.com/astral-sh/ruff/pull/18400)) - \[`ruff`] Trigger `RUF037` for empty string and byte strings ([#&#8203;18862](https://github.com/astral-sh/ruff/pull/18862)) - \[formatter] Fix missing blank lines before decorated classes in `.pyi` files ([#&#8203;18888](https://github.com/astral-sh/ruff/pull/18888)) ##### Bug fixes - Avoid generating diagnostics with per-file ignores ([#&#8203;18801](https://github.com/astral-sh/ruff/pull/18801)) - Handle parenthesized arguments in `remove_argument` ([#&#8203;18805](https://github.com/astral-sh/ruff/pull/18805)) - \[`flake8-logging`] Avoid false positive for `exc_info=True` outside `logger.exception` (`LOG014`) ([#&#8203;18737](https://github.com/astral-sh/ruff/pull/18737)) - \[`flake8-pytest-style`] Enforce `pytest` import for decorators ([#&#8203;18779](https://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://github.com/astral-sh/ruff/pull/18792)) - \[`flake8-pytest-style`] `PT001`/`PT023` fix makes syntax error on parenthesized decorator ([#&#8203;18782](https://github.com/astral-sh/ruff/pull/18782)) - \[`flake8-raise`] Make fix unsafe if it deletes comments (`RSE102`) ([#&#8203;18788](https://github.com/astral-sh/ruff/pull/18788)) - \[`flake8-simplify`] Fix `SIM911` autofix creating a syntax error ([#&#8203;18793](https://github.com/astral-sh/ruff/pull/18793)) - \[`flake8-simplify`] Fix false negatives for shadowed bindings (`SIM910`, `SIM911`) ([#&#8203;18794](https://github.com/astral-sh/ruff/pull/18794)) - \[`flake8-simplify`] Preserve original behavior for `except ()` and bare `except` (`SIM105`) ([#&#8203;18213](https://github.com/astral-sh/ruff/pull/18213)) - \[`flake8-pyi`] Fix `PYI041`'s fix causing `TypeError` with `None | None | ...` ([#&#8203;18637](https://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://github.com/astral-sh/ruff/pull/18803)) - \[`perflint`] Fix false negative in `PERF401` ([#&#8203;18866](https://github.com/astral-sh/ruff/pull/18866)) - \[`pylint`] Avoid flattening nested `min`/`max` when outer call has single argument (`PLW3301`) ([#&#8203;16885](https://github.com/astral-sh/ruff/pull/16885)) - \[`pylint`] Fix `PLC2801` autofix creating a syntax error ([#&#8203;18857](https://github.com/astral-sh/ruff/pull/18857)) - \[`pylint`] Mark `PLE0241` autofix as unsafe if there's comments in the base classes ([#&#8203;18832](https://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://github.com/astral-sh/ruff/pull/18856)) - \[`refurb`] Detect more exotic float literals in `FURB164` ([#&#8203;18925](https://github.com/astral-sh/ruff/pull/18925)) - \[`refurb`] Fix `FURB163` autofix creating a syntax error for `yield` expressions ([#&#8203;18756](https://github.com/astral-sh/ruff/pull/18756)) - \[`refurb`] Mark `FURB129` autofix as unsafe if there's comments in the `readlines` call ([#&#8203;18858](https://github.com/astral-sh/ruff/pull/18858)) - \[`ruff`] Fix false positives and negatives in `RUF010` ([#&#8203;18690](https://github.com/astral-sh/ruff/pull/18690)) - Fix casing of `analyze.direction` variant names ([#&#8203;18892](https://github.com/astral-sh/ruff/pull/18892)) ##### Rule changes - Fix f-string interpolation escaping in generated fixes ([#&#8203;18882](https://github.com/astral-sh/ruff/pull/18882)) - \[`flake8-return`] Mark `RET501` fix unsafe if comments are inside ([#&#8203;18780](https://github.com/astral-sh/ruff/pull/18780)) - \[`flake8-async`] Fix detection for large integer sleep durations in `ASYNC116` rule ([#&#8203;18767](https://github.com/astral-sh/ruff/pull/18767)) - \[`flake8-async`] Mark autofix for `ASYNC115` as unsafe if the call expression contains comments ([#&#8203;18753](https://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://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://github.com/astral-sh/ruff/pull/18768)) - \[`flake8-comprehensions`] Handle template strings for comprehension fixes ([#&#8203;18710](https://github.com/astral-sh/ruff/pull/18710)) - \[`flake8-future-annotations`] Add autofix (`FA100`) ([#&#8203;18903](https://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://github.com/astral-sh/ruff/pull/18839)) - \[`pylint`] Allow fix with comments and document performance implications (`PLW3301`) ([#&#8203;18936](https://github.com/astral-sh/ruff/pull/18936)) - \[`pylint`] Detect more exotic `NaN` literals in `PLW0177` ([#&#8203;18630](https://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://github.com/astral-sh/ruff/pull/18836)) - \[`pyupgrade`] Extend version detection to include `sys.version_info.major` (`UP036`) ([#&#8203;18633](https://github.com/astral-sh/ruff/pull/18633)) - \[`ruff`] Add lint rule `RUF064` for calling `chmod` with non-octal integers ([#&#8203;18541](https://github.com/astral-sh/ruff/pull/18541)) - \[`ruff`] Added `cls.__dict__.get('__annotations__')` check (`RUF063`) ([#&#8203;18233](https://github.com/astral-sh/ruff/pull/18233)) - \[`ruff`] Frozen `dataclass` default should be valid (`RUF009`) ([#&#8203;18735](https://github.com/astral-sh/ruff/pull/18735)) ##### Server - Consider virtual path for various server actions ([#&#8203;18910](https://github.com/astral-sh/ruff/pull/18910)) ##### Documentation - Add fix safety sections ([#&#8203;18940](https://github.com/astral-sh/ruff/pull/18940),[#&#8203;18841](https://github.com/astral-sh/ruff/pull/18841),[#&#8203;18802](https://github.com/astral-sh/ruff/pull/18802),[#&#8203;18837](https://github.com/astral-sh/ruff/pull/18837),[#&#8203;18800](https://github.com/astral-sh/ruff/pull/18800),[#&#8203;18415](https://github.com/astral-sh/ruff/pull/18415),[#&#8203;18853](https://github.com/astral-sh/ruff/pull/18853),[#&#8203;18842](https://github.com/astral-sh/ruff/pull/18842)) - Use updated pre-commit id ([#&#8203;18718](https://github.com/astral-sh/ruff/pull/18718)) - \[`perflint`] Small docs improvement to `PERF401` ([#&#8203;18786](https://github.com/astral-sh/ruff/pull/18786)) - \[`pyupgrade`]: Use `super()`, not `__super__` in error messages (`UP008`) ([#&#8203;18743](https://github.com/astral-sh/ruff/pull/18743)) - \[`flake8-pie`] Small docs fix to `PIE794` ([#&#8203;18829](https://github.com/astral-sh/ruff/pull/18829)) - \[`flake8-pyi`] Correct `collections-named-tuple` example to use PascalCase assignment ([#&#8203;16884](https://github.com/astral-sh/ruff/pull/16884)) - \[`flake8-pie`] Add note on type checking benefits to `unnecessary-dict-kwargs` (`PIE804`) ([#&#8203;18666](https://github.com/astral-sh/ruff/pull/18666)) - \[`pycodestyle`] Clarify PEP 8 relationship to `whitespace-around-operator` rules ([#&#8203;18870](https://github.com/astral-sh/ruff/pull/18870)) ##### Other changes - Disallow newlines in format specifiers of single quoted f- or t-strings ([#&#8203;18708](https://github.com/astral-sh/ruff/pull/18708)) - \[`flake8-logging`] Add fix safety section to `LOG002` ([#&#8203;18840](https://github.com/astral-sh/ruff/pull/18840)) - \[`pyupgrade`] Add fix safety section to `UP010` ([#&#8203;18838](https://github.com/astral-sh/ruff/pull/18838)) #### Contributors - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;Andrej730](https://github.com/Andrej730) - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;GideonBear](https://github.com/GideonBear) - [@&#8203;InSyncWithFoo](https://github.com/InSyncWithFoo) - [@&#8203;JosiahKane](https://github.com/JosiahKane) - [@&#8203;LaBatata101](https://github.com/LaBatata101) - [@&#8203;LyricalToxic](https://github.com/LyricalToxic) - [@&#8203;MeGaGiGaGon](https://github.com/MeGaGiGaGon) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;RazerM](https://github.com/RazerM) - [@&#8203;VascoSch92](https://github.com/VascoSch92) - [@&#8203;alpaylan](https://github.com/alpaylan) - [@&#8203;carljm](https://github.com/carljm) - [@&#8203;charliermarsh](https://github.com/charliermarsh) - [@&#8203;chirizxc](https://github.com/chirizxc) - [@&#8203;danparizher](https://github.com/danparizher) - [@&#8203;dcreager](https://github.com/dcreager) - [@&#8203;dericcrago](https://github.com/dericcrago) - [@&#8203;dhruvmanila](https://github.com/dhruvmanila) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;gopoto](https://github.com/gopoto) - [@&#8203;hmvp](https://github.com/hmvp) - [@&#8203;krikera](https://github.com/krikera) - [@&#8203;lubaskinc0de](https://github.com/lubaskinc0de) - [@&#8203;mashehu](https://github.com/mashehu) - [@&#8203;med1844](https://github.com/med1844) - [@&#8203;njhearp](https://github.com/njhearp) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;robsdedude](https://github.com/robsdedude) - [@&#8203;sharkdp](https://github.com/sharkdp) - [@&#8203;sobolevn](https://github.com/sobolevn) - [@&#8203;suneettipirneni](https://github.com/suneettipirneni) - [@&#8203;yunchipang](https://github.com/yunchipang) - [@&#8203;zanieb](https://github.com/zanieb) #### Install ruff 0.12.1 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.1/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.12.1/ruff-installer.ps1 | iex" ``` #### Download ruff 0.12.1 | File | Platform | Checksum | | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.1/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.12.0`](https://github.com/astral-sh/ruff/releases/tag/0.12.0) [Compare Source](https://github.com/astral-sh/ruff/compare/0.11.13...0.12.0) #### Release Notes 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`](https://docs.astral.sh/ruff/rules/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. [`collection-literal-concatenation`]: https://docs.astral.sh/ruff/rules/collection-literal-concatenation [`readlines-in-for`]: https://docs.astral.sh/ruff/rules/readlines-in-for [`if-else-block-instead-of-if-exp`]: https://docs.astral.sh/ruff/rules/if-else-block-instead-of-if-exp [`unused-noqa`]: https://docs.astral.sh/ruff/rules/unused-noqa [`subprocess-without-shell-equals-true`]: https://docs.astral.sh/ruff/rules/subprocess-without-shell-equals-true [`boolean-type-hint-positional-argument`]: https://docs.astral.sh/ruff/rules/boolean-type-hint-positional-argument [`non-pep604-annotation-union`]: https://docs.astral.sh/ruff/rules/non-pep604-annotation-union [`non-pep604-annotation-optional`]: https://docs.astral.sh/ruff/rules/non-pep604-annotation-optional ##### Preview features - \[`ruff`] Check for non-context-manager use of `pytest.raises`, `pytest.warns`, and `pytest.deprecated_call` (`RUF061`) ([#&#8203;17368](https://github.com/astral-sh/ruff/pull/17368)) - \[syntax-errors] Raise unsupported syntax error for template strings prior to Python 3.14 ([#&#8203;18664](https://github.com/astral-sh/ruff/pull/18664)) ##### Bug fixes - Add syntax error when conversion flag does not immediately follow exclamation mark ([#&#8203;18706](https://github.com/astral-sh/ruff/pull/18706)) - Add trailing space around `readlines` ([#&#8203;18542](https://github.com/astral-sh/ruff/pull/18542)) - Fix `\r` and `\r\n` handling in t- and f-string debug texts ([#&#8203;18673](https://github.com/astral-sh/ruff/pull/18673)) - Hug closing `}` when f-string expression has a format specifier ([#&#8203;18704](https://github.com/astral-sh/ruff/pull/18704)) - \[`flake8-pyi`] Avoid syntax error in the case of starred and keyword arguments (`PYI059`) ([#&#8203;18611](https://github.com/astral-sh/ruff/pull/18611)) - \[`flake8-return`] Fix `RET504` autofix generating a syntax error ([#&#8203;18428](https://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://github.com/astral-sh/ruff/pull/18472)) - \[`pycodestyle`] Avoid causing a syntax error in expressions spanning multiple lines (`E731`) ([#&#8203;18479](https://github.com/astral-sh/ruff/pull/18479)) - \[`pyupgrade`] Suppress `UP008` if `super` is shadowed ([#&#8203;18688](https://github.com/astral-sh/ruff/pull/18688)) - \[`refurb`] Parenthesize lambda and ternary expressions (`FURB122`, `FURB142`) ([#&#8203;18592](https://github.com/astral-sh/ruff/pull/18592)) - \[`ruff`] Handle extra arguments to `deque` (`RUF037`) ([#&#8203;18614](https://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://github.com/astral-sh/ruff/pull/18598)) - \[`ruff`] Validate arguments before offering a fix (`RUF056`) ([#&#8203;18631](https://github.com/astral-sh/ruff/pull/18631)) - \[`ruff`] Skip fix for `RUF059` if dummy name is already bound ([#&#8203;18509](https://github.com/astral-sh/ruff/pull/18509)) - \[`pylint`] Fix `PLW0128` to check assignment targets in square brackets and after asterisks ([#&#8203;18665](https://github.com/astral-sh/ruff/pull/18665)) ##### Rule changes - Fix false positive on mutations in `return` statements (`B909`) ([#&#8203;18408](https://github.com/astral-sh/ruff/pull/18408)) - Treat `ty:` comments as pragma comments ([#&#8203;18532](https://github.com/astral-sh/ruff/pull/18532)) - \[`flake8-pyi`] Apply `custom-typevar-for-self` to string annotations (`PYI019`) ([#&#8203;18311](https://github.com/astral-sh/ruff/pull/18311)) - \[`pyupgrade`] Don't offer a fix for `Optional[None]` (`UP007`, `UP045)` ([#&#8203;18545](https://github.com/astral-sh/ruff/pull/18545)) - \[`pyupgrade`] Fix `super(__class__, self)` detection (`UP008`) ([#&#8203;18478](https://github.com/astral-sh/ruff/pull/18478)) - \[`refurb`] Make the fix for `FURB163` unsafe for `log2`, `log10`, `*args`, and deleted comments ([#&#8203;18645](https://github.com/astral-sh/ruff/pull/18645)) ##### Server - Support cancellation requests ([#&#8203;18627](https://github.com/astral-sh/ruff/pull/18627)) ##### Documentation - Drop confusing second `*` from glob pattern example for `per-file-target-version` ([#&#8203;18709](https://github.com/astral-sh/ruff/pull/18709)) - Update Neovim configuration examples ([#&#8203;18491](https://github.com/astral-sh/ruff/pull/18491)) - \[`pylint`] De-emphasize `__hash__ = Parent.__hash__` (`PLW1641`) ([#&#8203;18613](https://github.com/astral-sh/ruff/pull/18613)) - \[`refurb`] Add a note about float literal handling (`FURB157`) ([#&#8203;18615](https://github.com/astral-sh/ruff/pull/18615)) #### Contributors - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;DetachHead](https://github.com/DetachHead) - [@&#8203;InSyncWithFoo](https://github.com/InSyncWithFoo) - [@&#8203;K-dash](https://github.com/K-dash) - [@&#8203;LaBatata101](https://github.com/LaBatata101) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;RazerM](https://github.com/RazerM) - [@&#8203;abhijeetbodas2001](https://github.com/abhijeetbodas2001) - [@&#8203;benbaror](https://github.com/benbaror) - [@&#8203;carljm](https://github.com/carljm) - [@&#8203;charliermarsh](https://github.com/charliermarsh) - [@&#8203;chirizxc](https://github.com/chirizxc) - [@&#8203;close2code-palm](https://github.com/close2code-palm) - [@&#8203;dhruvmanila](https://github.com/dhruvmanila) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;felixscherz](https://github.com/felixscherz) - [@&#8203;github-actions](https://github.com/github-actions) - [@&#8203;grievejia](https://github.com/grievejia) - [@&#8203;ibraheemdev](https://github.com/ibraheemdev) - [@&#8203;mtshiba](https://github.com/mtshiba) - [@&#8203;njhearp](https://github.com/njhearp) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;robsdedude](https://github.com/robsdedude) - [@&#8203;sharkdp](https://github.com/sharkdp) - [@&#8203;shimies](https://github.com/shimies) - [@&#8203;suneettipirneni](https://github.com/suneettipirneni) - [@&#8203;thejchap](https://github.com/thejchap) - [@&#8203;twentyone212121](https://github.com/twentyone212121) #### Install ruff 0.12.0 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.12.0/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.12.0/ruff-installer.ps1 | iex" ``` #### Download ruff 0.12.0 | File | Platform | Checksum | | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | [ruff-aarch64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-aarch64-apple-darwin.tar.gz.sha256) | | [ruff-x86\_64-apple-darwin.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-x86_64-apple-darwin.tar.gz.sha256) | | [ruff-aarch64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-i686-pc-windows-msvc.zip.sha256) | | [ruff-x86\_64-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-x86_64-pc-windows-msvc.zip.sha256) | | [ruff-aarch64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-i686-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-i686-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256) | | [ruff-s390x-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-s390x-unknown-linux-gnu.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256) | | [ruff-armv7-unknown-linux-gnueabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256) | | [ruff-aarch64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-aarch64-unknown-linux-musl.tar.gz.sha256) | | [ruff-i686-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-i686-unknown-linux-musl.tar.gz.sha256) | | [ruff-x86\_64-unknown-linux-musl.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-x86_64-unknown-linux-musl.tar.gz.sha256) | | [ruff-arm-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256) | | [ruff-armv7-unknown-linux-musleabihf.tar.gz](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.12.0/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | ### [`v0.11.13`](https://github.com/astral-sh/ruff/releases/tag/0.11.13) [Compare Source](https://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://github.com/astral-sh/ruff/pull/18367),[#&#8203;18366](https://github.com/astral-sh/ruff/pull/18366),[#&#8203;18363](https://github.com/astral-sh/ruff/pull/18363),[#&#8203;18093](https://github.com/astral-sh/ruff/pull/18093)) - \[`refurb`] Add coverage of `set` and `frozenset` calls (`FURB171`) ([#&#8203;18035](https://github.com/astral-sh/ruff/pull/18035)) - \[`refurb`] Mark `FURB180` fix unsafe when class has bases ([#&#8203;18149](https://github.com/astral-sh/ruff/pull/18149)) ##### Bug fixes - \[`perflint`] Fix missing parentheses for lambda and ternary conditions (`PERF401`, `PERF403`) ([#&#8203;18412](https://github.com/astral-sh/ruff/pull/18412)) - \[`pyupgrade`] Apply `UP035` only on py313+ for `get_type_hints()` ([#&#8203;18476](https://github.com/astral-sh/ruff/pull/18476)) - \[`pyupgrade`] Make fix unsafe if it deletes comments (`UP004`,`UP050`) ([#&#8203;18393](https://github.com/astral-sh/ruff/pull/18393), [#&#8203;18390](https://github.com/astral-sh/ruff/pull/18390)) ##### Rule changes - \[`fastapi`] Avoid false positive for class dependencies (`FAST003`) ([#&#8203;18271](https://github.com/astral-sh/ruff/pull/18271)) ##### Documentation - Update editor setup docs for Neovim and Vim ([#&#8203;18324](https://github.com/astral-sh/ruff/pull/18324)) ##### Other changes - Support Python 3.14 template strings (t-strings) in formatter and parser ([#&#8203;17851](https://github.com/astral-sh/ruff/pull/17851)) #### Contributors - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;BurntSushi](https://github.com/BurntSushi) - [@&#8203;InSyncWithFoo](https://github.com/InSyncWithFoo) - [@&#8203;Lee-W](https://github.com/Lee-W) - [@&#8203;MatthewMckee4](https://github.com/MatthewMckee4) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;Viicos](https://github.com/Viicos) - [@&#8203;abhijeetbodas2001](https://github.com/abhijeetbodas2001) - [@&#8203;carljm](https://github.com/carljm) - [@&#8203;chirizxc](https://github.com/chirizxc) - [@&#8203;dcreager](https://github.com/dcreager) - [@&#8203;dhruvmanila](https://github.com/dhruvmanila) - [@&#8203;dylwil3](https://github.com/dylwil3) - [@&#8203;github-actions](https://github.com/github-actions) - [@&#8203;ibraheemdev](https://github.com/ibraheemdev) - [@&#8203;lipefree](https://github.com/lipefree) - [@&#8203;mtshiba](https://github.com/mtshiba) - [@&#8203;naslundx](https://github.com/naslundx) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;otakutyrant](https://github.com/otakutyrant) - [@&#8203;renovate](https://github.com/renovate) - [@&#8203;robsdedude](https://github.com/robsdedude) - [@&#8203;sharkdp](https://github.com/sharkdp) - [@&#8203;twentyone212121](https://github.com/twentyone212121) - [@&#8203;zanieb](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-aarch64-pc-windows-msvc.zip.sha256) | | [ruff-i686-pc-windows-msvc.zip](https://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-i686-pc-windows-msvc.zip) | x86 Windows | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-i686-unknown-linux-gnu.tar.gz) | x86 Linux | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-powerpc64-unknown-linux-gnu.tar.gz) | PPC64 Linux | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-s390x-unknown-linux-gnu.tar.gz) | S390x Linux | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-armv7-unknown-linux-gnueabihf.tar.gz) | ARMv7 Linux | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-i686-unknown-linux-musl.tar.gz) | x86 MUSL Linux | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-arm-unknown-linux-musleabihf.tar.gz) | ARMv6 MUSL Linux (Hardfloat) | [checksum](https://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://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-armv7-unknown-linux-musleabihf.tar.gz) | ARMv7 MUSL Linux | [checksum](https://github.com/astral-sh/ruff/releases/download/0.11.13/ruff-armv7-unknown-linux-musleabihf.tar.gz.sha256) | </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS44My4wIiwidXBkYXRlZEluVmVyIjoiNDIuMTkuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Update dependency ruff to v0.12.10
All checks were successful
Actions / Lint (Python 3.11) (pull_request) Successful in 16s
Actions / Lint (Python 3.13) (pull_request) Successful in 16s
Actions / Lint (Python 3.12) (pull_request) Successful in 16s
Actions / Build (pull_request) Successful in 20s
99a0c8a1d1
Renovate bot force-pushed renovate/ruff-0.x from 99a0c8a1d1
All checks were successful
Actions / Lint (Python 3.11) (pull_request) Successful in 16s
Actions / Lint (Python 3.13) (pull_request) Successful in 16s
Actions / Lint (Python 3.12) (pull_request) Successful in 16s
Actions / Build (pull_request) Successful in 20s
to e5761a8cde
All checks were successful
Actions / Lint (Python 3.11) (pull_request) Successful in 16s
Actions / Lint (Python 3.12) (pull_request) Successful in 17s
Actions / Build (pull_request) Successful in 26s
Actions / Lint (Python 3.13) (pull_request) Successful in 16s
2025-08-27 11:07:56 -04:00
Compare
Renovate bot force-pushed renovate/ruff-0.x from e5761a8cde
All checks were successful
Actions / Lint (Python 3.11) (pull_request) Successful in 16s
Actions / Lint (Python 3.12) (pull_request) Successful in 17s
Actions / Build (pull_request) Successful in 26s
Actions / Lint (Python 3.13) (pull_request) Successful in 16s
to 4ab6666666
All checks were successful
Actions / Build (pull_request) Successful in 15s
Actions / Lint (Python 3.11) (pull_request) Successful in 17s
Actions / Lint (Python 3.12) (pull_request) Successful in 17s
Actions / Lint (Python 3.13) (pull_request) Successful in 17s
2025-08-28 10:07:12 -04:00
Compare
Renovate bot changed title from Update dependency ruff to v0.12.10 to Update dependency ruff to v0.12.11 2025-08-28 10:07:12 -04:00
Renovate bot changed title from Update dependency ruff to v0.12.11 to Update dependency ruff to v0.12.12 2025-09-04 13:09:56 -04:00
Renovate bot force-pushed renovate/ruff-0.x from 17528e2fdf to 2638072552
All checks were successful
Actions / Build (pull_request) Successful in 38s
Actions / Lint (Python 3.11) (pull_request) Successful in 42s
Actions / Lint (Python 3.12) (pull_request) Successful in 44s
Actions / Lint (Python 3.13) (pull_request) Successful in 43s
2025-09-10 12:45:29 -04:00
Compare
Renovate bot changed title from Update dependency ruff to v0.12.12 to Update dependency ruff to v0.13.0 2025-09-10 12:45:29 -04:00
Renovate bot force-pushed renovate/ruff-0.x from 2638072552
All checks were successful
Actions / Build (pull_request) Successful in 38s
Actions / Lint (Python 3.11) (pull_request) Successful in 42s
Actions / Lint (Python 3.12) (pull_request) Successful in 44s
Actions / Lint (Python 3.13) (pull_request) Successful in 43s
to f97321411c
All checks were successful
Actions / Build (pull_request) Successful in 15s
Actions / Lint (Python 3.11) (pull_request) Successful in 18s
Actions / Lint (Python 3.12) (pull_request) Successful in 16s
Actions / Lint (Python 3.13) (pull_request) Successful in 17s
2025-09-18 16:05:05 -04:00
Compare
Renovate bot changed title from Update dependency ruff to v0.13.0 to Update dependency ruff to v0.13.1 2025-09-18 16:05:06 -04:00
Renovate bot changed title from Update dependency ruff to v0.13.1 to Update dependency ruff to v0.13.2 2025-09-25 11:06:40 -04:00
Renovate bot force-pushed renovate/ruff-0.x from f97321411c
All checks were successful
Actions / Build (pull_request) Successful in 15s
Actions / Lint (Python 3.11) (pull_request) Successful in 18s
Actions / Lint (Python 3.12) (pull_request) Successful in 16s
Actions / Lint (Python 3.13) (pull_request) Successful in 17s
to 3fac186888
All checks were successful
Actions / Build (pull_request) Successful in 14s
Actions / Lint (Python 3.11) (pull_request) Successful in 17s
Actions / Lint (Python 3.12) (pull_request) Successful in 18s
Actions / Lint (Python 3.13) (pull_request) Successful in 18s
2025-09-25 11:06:41 -04:00
Compare
Renovate bot force-pushed renovate/ruff-0.x from 3fac186888
All checks were successful
Actions / Build (pull_request) Successful in 14s
Actions / Lint (Python 3.11) (pull_request) Successful in 17s
Actions / Lint (Python 3.12) (pull_request) Successful in 18s
Actions / Lint (Python 3.13) (pull_request) Successful in 18s
to 960100def0
All checks were successful
Actions / Build (pull_request) Successful in 14s
Actions / Lint (Python 3.12) (pull_request) Successful in 16s
Actions / Lint (Python 3.11) (pull_request) Successful in 17s
Actions / Lint (Python 3.13) (pull_request) Successful in 18s
2025-10-02 15:45:10 -04:00
Compare
Renovate bot changed title from Update dependency ruff to v0.13.2 to Update dependency ruff to v0.13.3 2025-10-02 15:45:11 -04:00
Renovate bot force-pushed renovate/ruff-0.x from 960100def0
All checks were successful
Actions / Build (pull_request) Successful in 14s
Actions / Lint (Python 3.12) (pull_request) Successful in 16s
Actions / Lint (Python 3.11) (pull_request) Successful in 17s
Actions / Lint (Python 3.13) (pull_request) Successful in 18s
to cd69ab0734
All checks were successful
Actions / Build (pull_request) Successful in 16s
Actions / Lint (Python 3.11) (pull_request) Successful in 16s
Actions / Lint (Python 3.12) (pull_request) Successful in 14s
Actions / Lint (Python 3.13) (pull_request) Successful in 14s
2025-10-04 08:44:18 -04:00
Compare
Renovate bot changed title from Update dependency ruff to v0.13.3 to Update dependency ruff to v0.14.0 2025-10-07 14:53:41 -04:00
Renovate bot force-pushed renovate/ruff-0.x from c1d21fd3c9 to e6e308f96e
All checks were successful
Actions / Build (pull_request) Successful in 53s
Actions / Lint (Python 3.13) (pull_request) Successful in 54s
Actions / Lint (Python 3.12) (pull_request) Successful in 1m5s
Actions / Lint (Python 3.11) (pull_request) Successful in 1m14s
2025-10-16 14:25:06 -04:00
Compare
Renovate bot changed title from Update dependency ruff to v0.14.0 to Update dependency ruff to v0.14.1 2025-10-16 14:25:07 -04:00
Renovate bot changed title from Update dependency ruff to v0.14.1 to Update dependency ruff to v0.14.2 2025-10-23 15:44:45 -04:00
Renovate bot force-pushed renovate/ruff-0.x from e6e308f96e
All checks were successful
Actions / Build (pull_request) Successful in 53s
Actions / Lint (Python 3.13) (pull_request) Successful in 54s
Actions / Lint (Python 3.12) (pull_request) Successful in 1m5s
Actions / Lint (Python 3.11) (pull_request) Successful in 1m14s
to 94eca76eaa
All checks were successful
Actions / Build (pull_request) Successful in 15s
Actions / Lint (Python 3.13) (pull_request) Successful in 14s
Actions / Lint (Python 3.11) (pull_request) Successful in 35s
Actions / Lint (Python 3.12) (pull_request) Successful in 34s
2025-10-23 15:44:45 -04:00
Compare
Renovate bot force-pushed renovate/ruff-0.x from 94eca76eaa
All checks were successful
Actions / Build (pull_request) Successful in 15s
Actions / Lint (Python 3.13) (pull_request) Successful in 14s
Actions / Lint (Python 3.11) (pull_request) Successful in 35s
Actions / Lint (Python 3.12) (pull_request) Successful in 34s
to 64711c7184
All checks were successful
Actions / Lint (Python 3.11) (pull_request) Successful in 15s
Actions / Build (pull_request) Successful in 34s
Actions / Lint (Python 3.12) (pull_request) Successful in 36s
Actions / Lint (Python 3.13) (pull_request) Successful in 35s
2025-10-30 20:44:06 -04:00
Compare
Renovate bot changed title from Update dependency ruff to v0.14.2 to Update dependency ruff to v0.14.3 2025-10-30 20:44:06 -04:00
Renovate bot changed title from Update dependency ruff to v0.14.3 to Update dependency ruff to v0.14.6 2025-11-22 09:31:27 -05:00
Renovate bot force-pushed renovate/ruff-0.x from 64711c7184
All checks were successful
Actions / Lint (Python 3.11) (pull_request) Successful in 15s
Actions / Build (pull_request) Successful in 34s
Actions / Lint (Python 3.12) (pull_request) Successful in 36s
Actions / Lint (Python 3.13) (pull_request) Successful in 35s
to f5e8abecd1
Some checks failed
renovate/artifacts Artifact file update failure
Actions / Build (pull_request) Successful in 34s
Actions / Lint (Python 3.11) (pull_request) Successful in 38s
Actions / Lint (Python 3.12) (pull_request) Successful in 36s
Actions / Lint (Python 3.13) (pull_request) Successful in 37s
2025-11-22 09:31:27 -05:00
Compare
Renovate bot force-pushed renovate/ruff-0.x from f5e8abecd1
Some checks failed
renovate/artifacts Artifact file update failure
Actions / Build (pull_request) Successful in 34s
Actions / Lint (Python 3.11) (pull_request) Successful in 38s
Actions / Lint (Python 3.12) (pull_request) Successful in 36s
Actions / Lint (Python 3.13) (pull_request) Successful in 37s
to 3ad0d4c302
All checks were successful
Actions / Build (pull_request) Successful in 31s
Actions / Lint (Python 3.12) (pull_request) Successful in 32s
Actions / Lint (Python 3.11) (pull_request) Successful in 33s
Actions / Lint (Python 3.13) (pull_request) Successful in 33s
2025-11-28 16:08:04 -05:00
Compare
Renovate bot changed title from Update dependency ruff to v0.14.6 to Update dependency ruff to v0.14.7 2025-11-28 16:08:05 -05:00
cswimr approved these changes 2025-11-28 23:14:47 -05:00
Renovate bot force-pushed renovate/ruff-0.x from 3ad0d4c302
All checks were successful
Actions / Build (pull_request) Successful in 31s
Actions / Lint (Python 3.12) (pull_request) Successful in 32s
Actions / Lint (Python 3.11) (pull_request) Successful in 33s
Actions / Lint (Python 3.13) (pull_request) Successful in 33s
to 73f4dc34b4
All checks were successful
Actions / Lint (Python 3.13) (pull_request) Successful in 13s
Actions / Build (pull_request) Successful in 32s
Actions / Lint (Python 3.12) (pull_request) Successful in 32s
Actions / Lint (Python 3.11) (pull_request) Successful in 34s
2025-11-28 23:37:55 -05:00
Compare
Renovate bot force-pushed renovate/ruff-0.x from 73f4dc34b4
All checks were successful
Actions / Lint (Python 3.13) (pull_request) Successful in 13s
Actions / Build (pull_request) Successful in 32s
Actions / Lint (Python 3.12) (pull_request) Successful in 32s
Actions / Lint (Python 3.11) (pull_request) Successful in 34s
to 3e455d981a 2025-12-04 10:42:39 -05:00
Compare
Renovate bot changed title from Update dependency ruff to v0.14.7 to Update dependency ruff to v0.14.8 2025-12-04 11:12:25 -05:00
Renovate bot force-pushed renovate/ruff-0.x from 3e455d981a to 97094003f6 2025-12-11 17:12:53 -05:00 Compare
Renovate bot changed title from Update dependency ruff to v0.14.8 to Update dependency ruff to v0.14.9 2025-12-11 17:42:49 -05:00
Some required checks are missing.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/ruff-0.x:renovate/ruff-0.x
git switch renovate/ruff-0.x
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cswimr/tacklebox!18
No description provided.