|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 0.5.1 |
| 4 | + |
| 5 | +### Preview features |
| 6 | + |
| 7 | +- \[`flake8-bugbear`\] Implement mutable-contextvar-default (B039) ([#12113](https://github.com/astral-sh/ruff/pull/12113)) |
| 8 | +- \[`pycodestyle`\] Whitespace after decorator (`E204`) ([#12140](https://github.com/astral-sh/ruff/pull/12140)) |
| 9 | +- \[`pytest`\] Reverse `PT001` and `PT0023` defaults ([#12106](https://github.com/astral-sh/ruff/pull/12106)) |
| 10 | + |
| 11 | +### Rule changes |
| 12 | + |
| 13 | +- Enable token-based rules on source with syntax errors ([#11950](https://github.com/astral-sh/ruff/pull/11950)) |
| 14 | +- \[`flake8-bandit`\] Detect `httpx` for `S113` ([#12174](https://github.com/astral-sh/ruff/pull/12174)) |
| 15 | +- \[`numpy`\] Update `NPY201` to include exception deprecations ([#12065](https://github.com/astral-sh/ruff/pull/12065)) |
| 16 | +- \[`pylint`\] Generate autofix for `duplicate-bases` (`PLE0241`) ([#12105](https://github.com/astral-sh/ruff/pull/12105)) |
| 17 | + |
| 18 | +### Server |
| 19 | + |
| 20 | +- Avoid syntax error notification for source code actions ([#12148](https://github.com/astral-sh/ruff/pull/12148)) |
| 21 | +- Consider the content of the new cells during notebook sync ([#12203](https://github.com/astral-sh/ruff/pull/12203)) |
| 22 | +- Fix replacement edit range computation ([#12171](https://github.com/astral-sh/ruff/pull/12171)) |
| 23 | + |
| 24 | +### Bug fixes |
| 25 | + |
| 26 | +- Disable auto-fix when source has syntax errors ([#12134](https://github.com/astral-sh/ruff/pull/12134)) |
| 27 | +- Fix cache key collisions for paths with separators ([#12159](https://github.com/astral-sh/ruff/pull/12159)) |
| 28 | +- Make `requires-python` inference robust to `==` ([#12091](https://github.com/astral-sh/ruff/pull/12091)) |
| 29 | +- Use char-wise width instead of `str`-width ([#12135](https://github.com/astral-sh/ruff/pull/12135)) |
| 30 | +- \[`pycodestyle`\] Avoid `E275` if keyword followed by comma ([#12136](https://github.com/astral-sh/ruff/pull/12136)) |
| 31 | +- \[`pycodestyle`\] Avoid `E275` if keyword is followed by a semicolon ([#12095](https://github.com/astral-sh/ruff/pull/12095)) |
| 32 | +- \[`pylint`\] Skip [dummy variables](https://docs.astral.sh/ruff/settings/#lint_dummy-variable-rgx) for `PLR1704` ([#12190](https://github.com/astral-sh/ruff/pull/12190)) |
| 33 | + |
| 34 | +### Performance |
| 35 | + |
| 36 | +- Remove allocation in `parse_identifier` ([#12103](https://github.com/astral-sh/ruff/pull/12103)) |
| 37 | +- Use `CompactString` for `Identifier` AST node ([#12101](https://github.com/astral-sh/ruff/pull/12101)) |
| 38 | + |
3 | 39 | ## 0.5.0 |
4 | 40 |
|
5 | 41 | Check out the [blog post](https://astral.sh/blog/ruff-v0.5.0) for a migration guide and overview of the changes! |
|
0 commit comments