|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 0.16.6 |
| 4 | + |
| 5 | +Released on 2026-09-03. |
| 6 | + |
| 7 | +### Preview features |
| 8 | + |
| 9 | +- Move `pytest-fixture-autouse` to the `restriction` category ([#28219](https://github.com/astral-sh/ruff/pull/28219)) |
| 10 | +- \[`flake8-pytest-style`\] Add an autofix for `PT020` ([#27993](https://github.com/astral-sh/ruff/pull/27993)) |
| 11 | +- \[`flake8-tidy-imports`\] Prevent fix loop between `TID254` and `TID255` ([#28262](https://github.com/astral-sh/ruff/pull/28262)) |
| 12 | +- \[`isort`\] Exclude pragma comments from line length calculation (`I001`) ([#27313](https://github.com/astral-sh/ruff/pull/27313)) |
| 13 | + |
| 14 | +### Bug fixes |
| 15 | + |
| 16 | +- Validate unary expressions when parsing ([#28233](https://github.com/astral-sh/ruff/pull/28233)) |
| 17 | +- \[`flake8-async`, `pylint`\] Recognize `builtins.open` (`ASYNC230`, `PLW1514`) ([#28021](https://github.com/astral-sh/ruff/pull/28021)) |
| 18 | +- \[`flake8-bugbear`\] Fix panic on `match` subjects (`B031`) ([#27781](https://github.com/astral-sh/ruff/pull/27781)) |
| 19 | +- \[`flake8-datetimez`\] Reject `tzinfo=None` for `datetime` bounds (`DTZ901`) ([#28022](https://github.com/astral-sh/ruff/pull/28022)) |
| 20 | +- \[`flake8-pytest-style`\] Avoid duplicate `PT017` diagnostics ([#27918](https://github.com/astral-sh/ruff/pull/27918)) |
| 21 | +- \[`ruff`\] Remove `lint.external` hint for Ruff-specific suppressions (`RUF102`) ([#27923](https://github.com/astral-sh/ruff/pull/27923)) |
| 22 | + |
| 23 | +### Rule changes |
| 24 | + |
| 25 | +- \[`flake8-use-pathlib`\] Add display-only fix for `os.listdir` (`PTH208`) ([#28027](https://github.com/astral-sh/ruff/pull/28027)) |
| 26 | + |
| 27 | +### Documentation |
| 28 | + |
| 29 | +- Add another example and glob reference for `lint.per-file-ignores` ([#28106](https://github.com/astral-sh/ruff/pull/28106)) |
| 30 | +- Add duplicate work guidance ([#28229](https://github.com/astral-sh/ruff/pull/28229)) |
| 31 | +- \[`flake8-async`\] Document thread offloading (`ASYNC240`) ([#28008](https://github.com/astral-sh/ruff/pull/28008)) |
| 32 | +- \[`pyupgrade`\] Clarify default `encoding` argument handling (`UP012`) ([#27315](https://github.com/astral-sh/ruff/pull/27315)) |
| 33 | + |
| 34 | +### Other changes |
| 35 | + |
| 36 | +- Allow unary plus in match patterns on Python 3.15 ([#28231](https://github.com/astral-sh/ruff/pull/28231)) |
| 37 | + |
| 38 | +### Contributors |
| 39 | + |
| 40 | +- [@flying-sheep](https://github.com/flying-sheep) |
| 41 | +- [@pikammmmm](https://github.com/pikammmmm) |
| 42 | +- [@fly1d](https://github.com/fly1d) |
| 43 | +- [@waterWang](https://github.com/waterWang) |
| 44 | +- [@Pierre-Sassoulas](https://github.com/Pierre-Sassoulas) |
| 45 | +- [@ntBre](https://github.com/ntBre) |
| 46 | +- [@jelle-openai](https://github.com/jelle-openai) |
| 47 | +- [@ericbuehl](https://github.com/ericbuehl) |
| 48 | +- [@tjkuson](https://github.com/tjkuson) |
| 49 | +- [@AbhinavMir](https://github.com/AbhinavMir) |
| 50 | +- [@Whning0513](https://github.com/Whning0513) |
| 51 | +- [@chirizxc](https://github.com/chirizxc) |
| 52 | + |
3 | 53 | ## 0.16.5 |
4 | 54 |
|
5 | 55 | Released on 2026-08-27. |
|
0 commit comments