|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## 0.1.3 |
| 4 | + |
| 5 | +This release includes a variety of improvements to the Ruff formatter, removing several known and |
| 6 | +unintentional deviations from Black. |
| 7 | + |
| 8 | +### Formatter |
| 9 | + |
| 10 | +- Avoid space around pow for `None`, `True` and `False` ([#8189](https://github.com/astral-sh/ruff/pull/8189)) |
| 11 | +- Avoid sorting all paths in the format command ([#8181](https://github.com/astral-sh/ruff/pull/8181)) |
| 12 | +- Insert necessary blank line between class and leading comments ([#8224](https://github.com/astral-sh/ruff/pull/8224)) |
| 13 | +- Avoid introducing new parentheses in annotated assignments ([#8233](https://github.com/astral-sh/ruff/pull/8233)) |
| 14 | +- Refine the warnings about incompatible linter options ([#8196](https://github.com/astral-sh/ruff/pull/8196)) |
| 15 | +- Add test and basic implementation for formatter preview mode ([#8044](https://github.com/astral-sh/ruff/pull/8044)) |
| 16 | +- Refine warning about incompatible `isort` settings ([#8192](https://github.com/astral-sh/ruff/pull/8192)) |
| 17 | +- Only omit optional parentheses for starting or ending with parentheses ([#8238](https://github.com/astral-sh/ruff/pull/8238)) |
| 18 | +- Use source type to determine parser mode for formatting ([#8205](https://github.com/astral-sh/ruff/pull/8205)) |
| 19 | +- Don't warn about magic trailing comma when `isort.force-single-line` is true ([#8244](https://github.com/astral-sh/ruff/pull/8244)) |
| 20 | +- Use `SourceKind::diff` for formatter ([#8240](https://github.com/astral-sh/ruff/pull/8240)) |
| 21 | +- Fix `fmt:off` with trailing child comment ([#8234](https://github.com/astral-sh/ruff/pull/8234)) |
| 22 | +- Formatter parentheses support for `IpyEscapeCommand` ([#8207](https://github.com/astral-sh/ruff/pull/8207)) |
| 23 | + |
| 24 | +### Linter |
| 25 | + |
| 26 | +- \[`pylint`\] Add buffer methods to `bad-dunder-method-name` (`PLW3201`) exclusions ([#8190](https://github.com/astral-sh/ruff/pull/8190)) |
| 27 | +- Match rule prefixes from `external` codes setting in `unused-noqa` ([#8177](https://github.com/astral-sh/ruff/pull/8177)) |
| 28 | +- Use `line-length` setting for isort in lieu of `pycodestyle.max-line-length` ([#8235](https://github.com/astral-sh/ruff/pull/8235)) |
| 29 | +- Update fix for `unnecessary-paren-on-raise-exception` to unsafe for unknown types ([#8231](https://github.com/astral-sh/ruff/pull/8231)) |
| 30 | +- Correct quick fix message for `W605` ([#8255](https://github.com/astral-sh/ruff/pull/8255)) |
| 31 | + |
| 32 | +### Documentation |
| 33 | + |
| 34 | +- Fix typo in max-doc-length documentation ([#8201](https://github.com/astral-sh/ruff/pull/8201)) |
| 35 | +- Improve documentation around linter-formatter conflicts ([#8257](https://github.com/astral-sh/ruff/pull/8257)) |
| 36 | +- Fix link to error suppression documentation in `unused-noqa` ([#8172](https://github.com/astral-sh/ruff/pull/8172)) |
| 37 | +- Add `external` option to `unused-noqa` documentation ([#8171](https://github.com/astral-sh/ruff/pull/8171)) |
| 38 | +- Add title attribute to icons ([#8060](https://github.com/astral-sh/ruff/pull/8060)) |
| 39 | +- Clarify unsafe case in RSE102 ([#8256](https://github.com/astral-sh/ruff/pull/8256)) |
| 40 | +- Fix skipping formatting examples ([#8210](https://github.com/astral-sh/ruff/pull/8210)) |
| 41 | +- docs: fix name of `magic-trailing-comma` option in README ([#8200](https://github.com/astral-sh/ruff/pull/8200)) |
| 42 | +- Add note about scope of rule changing in versioning policy ([#8169](https://github.com/astral-sh/ruff/pull/8169)) |
| 43 | +- Document: Fix default lint rules ([#8218](https://github.com/astral-sh/ruff/pull/8218)) |
| 44 | +- Fix a wrong setting in configuration.md ([#8186](https://github.com/astral-sh/ruff/pull/8186)) |
| 45 | +- Fix misspelled TOML headers in the tutorial ([#8209](https://github.com/astral-sh/ruff/pull/8209)) |
| 46 | + |
3 | 47 | ## 0.1.2
|
4 | 48 |
|
5 | 49 | This release includes the Beta version of the Ruff formatter — an extremely fast, Black-compatible Python formatter.
|
|
0 commit comments