|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 0.13.1 |
| 4 | + |
| 5 | +Released on 2025-09-18. |
| 6 | + |
| 7 | +### Preview features |
| 8 | + |
| 9 | +- \[`flake8-simplify`\] Detect unnecessary `None` default for additional key expression types (`SIM910`) ([#20343](https://github.com/astral-sh/ruff/pull/20343)) |
| 10 | +- \[`flake8-use-pathlib`\] Add fix for `PTH123` ([#20169](https://github.com/astral-sh/ruff/pull/20169)) |
| 11 | +- \[`flake8-use-pathlib`\] Fix `PTH101`, `PTH104`, `PTH105`, `PTH121` fixes ([#20143](https://github.com/astral-sh/ruff/pull/20143)) |
| 12 | +- \[`flake8-use-pathlib`\] Make `PTH111` fix unsafe because it can change behavior ([#20215](https://github.com/astral-sh/ruff/pull/20215)) |
| 13 | +- \[`pycodestyle`\] Fix `E301` to only trigger for functions immediately within a class ([#19768](https://github.com/astral-sh/ruff/pull/19768)) |
| 14 | +- \[`refurb`\] Mark `single-item-membership-test` fix as always unsafe (`FURB171`) ([#20279](https://github.com/astral-sh/ruff/pull/20279)) |
| 15 | + |
| 16 | +### Bug fixes |
| 17 | + |
| 18 | +- Handle t-strings for token-based rules and suppression comments ([#20357](https://github.com/astral-sh/ruff/pull/20357)) |
| 19 | +- \[`flake8-bandit`\] Fix truthiness: dict-only `**` displays not truthy for `shell` (`S602`, `S604`, `S609`) ([#20177](https://github.com/astral-sh/ruff/pull/20177)) |
| 20 | +- \[`flake8-simplify`\] Fix diagnostic to show correct method name for `str.rsplit` calls (`SIM905`) ([#20459](https://github.com/astral-sh/ruff/pull/20459)) |
| 21 | +- \[`flynt`\] Use triple quotes for joined raw strings with newlines (`FLY002`) ([#20197](https://github.com/astral-sh/ruff/pull/20197)) |
| 22 | +- \[`pyupgrade`\] Fix false positive when class name is shadowed by local variable (`UP008`) ([#20427](https://github.com/astral-sh/ruff/pull/20427)) |
| 23 | +- \[`pyupgrade`\] Prevent infinite loop with `I002` and `UP026` ([#20327](https://github.com/astral-sh/ruff/pull/20327)) |
| 24 | +- \[`ruff`\] Recognize t-strings, generators, and lambdas in `invalid-index-type` (`RUF016`) ([#20213](https://github.com/astral-sh/ruff/pull/20213)) |
| 25 | + |
| 26 | +### Rule changes |
| 27 | + |
| 28 | +- \[`RUF102`\] Respect rule redirects in invalid rule code detection ([#20245](https://github.com/astral-sh/ruff/pull/20245)) |
| 29 | +- \[`flake8-bugbear`\] Mark the fix for `unreliable-callable-check` as always unsafe (`B004`) ([#20318](https://github.com/astral-sh/ruff/pull/20318)) |
| 30 | +- \[`ruff`\] Allow dataclass attribute value instantiation from nested frozen dataclass (`RUF009`) ([#20352](https://github.com/astral-sh/ruff/pull/20352)) |
| 31 | + |
| 32 | +### CLI |
| 33 | + |
| 34 | +- Add fixes to `output-format=sarif` ([#20300](https://github.com/astral-sh/ruff/pull/20300)) |
| 35 | +- Treat panics as fatal diagnostics, sort panics last ([#20258](https://github.com/astral-sh/ruff/pull/20258)) |
| 36 | + |
| 37 | +### Documentation |
| 38 | + |
| 39 | +- \[`ruff`\] Add `analyze.string-imports-min-dots` to settings ([#20375](https://github.com/astral-sh/ruff/pull/20375)) |
| 40 | +- Update README.md with Albumentations new repository URL ([#20415](https://github.com/astral-sh/ruff/pull/20415)) |
| 41 | + |
| 42 | +### Other changes |
| 43 | + |
| 44 | +- Bump MSRV to Rust 1.88 ([#20470](https://github.com/astral-sh/ruff/pull/20470)) |
| 45 | +- Enable inline noqa for multiline strings in playground ([#20442](https://github.com/astral-sh/ruff/pull/20442)) |
| 46 | + |
| 47 | +### Contributors |
| 48 | + |
| 49 | +- [@chirizxc](https://github.com/chirizxc) |
| 50 | +- [@danparizher](https://github.com/danparizher) |
| 51 | +- [@IDrokin117](https://github.com/IDrokin117) |
| 52 | +- [@amyreese](https://github.com/amyreese) |
| 53 | +- [@AlexWaygood](https://github.com/AlexWaygood) |
| 54 | +- [@dylwil3](https://github.com/dylwil3) |
| 55 | +- [@njhearp](https://github.com/njhearp) |
| 56 | +- [@woodruffw](https://github.com/woodruffw) |
| 57 | +- [@dcreager](https://github.com/dcreager) |
| 58 | +- [@TaKO8Ki](https://github.com/TaKO8Ki) |
| 59 | +- [@BurntSushi](https://github.com/BurntSushi) |
| 60 | +- [@salahelfarissi](https://github.com/salahelfarissi) |
| 61 | +- [@MichaReiser](https://github.com/MichaReiser) |
| 62 | + |
3 | 63 | ## 0.13.0 |
4 | 64 |
|
5 | 65 | Check out the [blog post](https://astral.sh/blog/ruff-v0.13.0) for a migration |
|
0 commit comments