Aquesta és una versió anterior. La versió actual és la 0.17.1. Ruff 0.17.1 · Data de publicació:
Fitxers d’instal·lació 0.9.4
| Arquitectura | Tipus | Àmbit | Mida del fitxer | Baixa | SHA256 |
|---|---|---|---|---|---|
| 64 bits | ZIP → Portable | — | — | github.com | VirusTotal |
| ARM64 | ZIP → Portable | — | — | github.com | VirusTotal |
| 32 bits | ZIP → Portable | — | — | github.com | VirusTotal |
L’enllaç i l’SHA256 provenen del manifest comunitari del Gestor de paquets del Windows. Convé comparar el hash del fitxer baixat abans d’executar-lo.
Notes de la versió
Preview features
- [airflow] Extend airflow context parameter check for `BaseOperator.execute` (AIR302) (#15713)
- [airflow] Update AIR302 to check for deprecated context keys (#15144)
- [flake8-bandit] Permit suspicious imports within stub files (S4) (#15822)
- [pylint] Do not trigger PLR6201 on empty collections (#15732)
- [refurb] Do not emit diagnostic when loop variables are used outside loop body (FURB122) (#15757)
- [ruff] Add support for more `re` patterns (RUF055) (#15764)
- [ruff] Check for shadowed `map` before suggesting fix (RUF058) (#15790)
- [ruff] Do not emit diagnostic when all arguments to `zip()` are variadic (RUF058) (#15744)
- [ruff] Parenthesize fix when argument spans multiple lines for `unnecessary-round` (RUF057) (#15703)
Rule changes
- Preserve quote style in generated code (#15726, #15778, #15794)
- [flake8-bugbear] Exempt `NewType` calls where the original type is immutable (B008) (#15765)
- [pylint] Honor banned top-level imports by TID253 in PLC0415. (#15628)
- [pyupgrade] Ignore `is_typeddict` and `TypedDict` for `deprecated-import` (UP035) (#15800)
CLI
- Fix formatter warning message for `flake8-quotes` option (#15788)
- Implement tab autocomplete for `ruff config` (#15603)
Bug fixes
- [flake8-comprehensions] Do not emit `unnecessary-map` diagnostic when lambda has different arity (C417) (#15802)
- [flake8-comprehensions] Parenthesize `sorted` when needed for `unnecessary-call-around-sorted` (C413) (#15825)
- [pyupgrade] Handle end-of-line comments for `quoted-annotation` (UP037) (#15824)
Documentation
- Add missing config docstrings (#15803)
- Add references to `trio.run_process` and `anyio.run_process` (#15761)
- Use `uv init --lib` in tutorial (#15718)