Tämä on vanhempi versio. Uusin versio on 0.17.1. Ruff 0.17.1 · Julkaistu:
Asennustiedostot 0.15.6
| Arkkitehtuuri | Tyyppi | Laajuus | Tiedostokoko | Lataus | SHA256 |
|---|---|---|---|---|---|
| 64-bittinen | ZIP → Portable | — | — | github.com | VirusTotal |
| ARM64 | ZIP → Portable | — | — | github.com | VirusTotal |
| 32-bittinen | ZIP → Portable | — | — | github.com | VirusTotal |
Linkki ja SHA256-tiiviste ovat peräisin Windows Package Managerin yhteisön manifestista. Vertaa ladatun tiedoston tiivistettä ennen kuin suoritat sen.
Muutosloki
Released on 2026-03-12.
Preview features
- Add support for `lazy` import parsing (#23755)
- Add support for star-unpacking of comprehensions (PEP 798) (#23788)
- Reject semantic syntax errors for lazy imports (#23757)
- Drop a few rules from the preview default set (#23879)
- [airflow] Flag `Variable.get()` calls outside of task execution context (AIR003) (#23584)
- [airflow] Flag runtime-varying values in DAG/task constructor arguments (AIR304) (#23631)
- [flake8-bugbear] Implement `delattr-with-constant` (B043) (#23737)
- [flake8-tidy-imports] Add TID254 to enforce lazy imports (#23777)
- [flake8-tidy-imports] Allow users to ban lazy imports with TID254 (#23847)
- [isort] Retain `lazy` keyword when sorting imports (#23762)
- [pyupgrade] Add `from __future__ import annotations` automatically (UP006) (#23260)
- [refurb] Support `newline` parameter in FURB101 for Python 3.13+ (#23754)
- [ruff] Add `os-path-commonprefix` (RUF071) (#23814)
- [ruff] Add unsafe fix for os-path-commonprefix (RUF071) (#23852)
- [ruff] Limit RUF036 to typing contexts; make it unsafe for non-typing-only (#23765)
- [ruff] Use starred unpacking for RUF017 in Python 3.15+ (#23789)
Bug fixes
- Fix `--add-noqa` creating unwanted leading whitespace (#23773)
- Fix `--add-noqa` breaking shebangs (#23577)
- [formatter] Fix lambda body formatting for multiline calls and subscripts (#23866)
- [formatter] Preserve required annotation parentheses in annotated assignments (#23865)
- [formatter] Preserve type-expression parentheses in the formatter (#23867)
- [flake8-annotations] Fix stack overflow in ANN401 on quoted annotations with escape sequences (#23912)
- [pep8-naming] Check naming conventions in `match` pattern bindings (N806, N815, N816) (#23899)
- [perflint] Fix comment duplication in fixes (PERF401, PERF403) (#23729)
- [pyupgrade] Properly trigger `super` change in nested class (UP008) (#22677)
- [ruff] Avoid syntax errors in RUF036 fixes (#23764)
Rule changes
- [flake8-bandit] Flag S501 with `requests.request` (#23873)
- [flake8-executable] Fix WSL detection in non-Docker containers (#22879)
- [flake8-print] Ignore `pprint` calls with `stream=` (#23787)
Documentation
- Update docs for Markdown code block formatting (#23871)
- [flake8-bugbear] Fix misleading description for B904 (#23731)