|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## 0.11.1 |
| 4 | + |
| 5 | +### Preview features |
| 6 | + |
| 7 | +- \[`airflow`\] Add `chain`, `chain_linear` and `cross_downstream` for `AIR302` ([#16647](https://github.com/astral-sh/ruff/pull/16647)) |
| 8 | +- [syntax-errors] Improve error message and range for pre-PEP-614 decorator syntax errors ([#16581](https://github.com/astral-sh/ruff/pull/16581)) |
| 9 | +- [syntax-errors] PEP 701 f-strings before Python 3.12 ([#16543](https://github.com/astral-sh/ruff/pull/16543)) |
| 10 | +- [syntax-errors] Parenthesized context managers before Python 3.9 ([#16523](https://github.com/astral-sh/ruff/pull/16523)) |
| 11 | +- [syntax-errors] Star annotations before Python 3.11 ([#16545](https://github.com/astral-sh/ruff/pull/16545)) |
| 12 | +- [syntax-errors] Star expression in index before Python 3.11 ([#16544](https://github.com/astral-sh/ruff/pull/16544)) |
| 13 | +- [syntax-errors] Unparenthesized assignment expressions in sets and indexes ([#16404](https://github.com/astral-sh/ruff/pull/16404)) |
| 14 | + |
| 15 | +### Bug fixes |
| 16 | + |
| 17 | +- Server: Allow `FixAll` action in presence of version-specific syntax errors ([#16848](https://github.com/astral-sh/ruff/pull/16848)) |
| 18 | +- \[`flake8-bandit`\] Allow raw strings in `suspicious-mark-safe-usage` (`S308`) #16702 ([#16770](https://github.com/astral-sh/ruff/pull/16770)) |
| 19 | +- \[`refurb`\] Avoid panicking `unwrap` in `verbose-decimal-constructor` (`FURB157`) ([#16777](https://github.com/astral-sh/ruff/pull/16777)) |
| 20 | +- \[`refurb`\] Fix starred expressions fix (`FURB161`) ([#16550](https://github.com/astral-sh/ruff/pull/16550)) |
| 21 | +- Fix `--statistics` reporting for unsafe fixes ([#16756](https://github.com/astral-sh/ruff/pull/16756)) |
| 22 | + |
| 23 | +### Rule changes |
| 24 | + |
| 25 | +- \[`flake8-executables`\] Allow `uv run` in shebang line for `shebang-missing-python` (`EXE003`) ([#16849](https://github.com/astral-sh/ruff/pull/16849),[#16855](https://github.com/astral-sh/ruff/pull/16855)) |
| 26 | + |
| 27 | +### CLI |
| 28 | + |
| 29 | +- Add `--exit-non-zero-on-format` ([#16009](https://github.com/astral-sh/ruff/pull/16009)) |
| 30 | + |
| 31 | +### Documentation |
| 32 | + |
| 33 | +- Update Ruff tutorial to avoid non-existent fix in `__init__.py` ([#16818](https://github.com/astral-sh/ruff/pull/16818)) |
| 34 | +- \[`flake8-gettext`\] Swap `format-` and `printf-in-get-text-func-call` examples (`INT002`, `INT003`) ([#16769](https://github.com/astral-sh/ruff/pull/16769)) |
| 35 | + |
3 | 36 | ## 0.11.0
|
4 | 37 |
|
5 | 38 | This is a follow-up to release 0.10.0. Because of a mistake in the release process, the `requires-python` inference changes were not included in that release. Ruff 0.11.0 now includes this change as well as the stabilization of the preview behavior for `PGH004`.
|
@@ -56,7 +89,7 @@ See also, the "Remapped rules" section which may result in disabled rules.
|
56 | 89 |
|
57 | 90 | - **More robust noqa parsing** ([#16483](https://github.com/astral-sh/ruff/pull/16483))
|
58 | 91 |
|
59 |
| - The syntax for both file-level and in-line suppression comments has been unified and made more robust to certain errors. In most cases, this will result in more suppression comments being read by Ruff, but there are a few instances where previously read comments will now log an error to the user instead. Please refer to the documentation on [_Error suppression_](https://docs.astral.sh/ruff/linter/#error-suppression) for the full specification. |
| 92 | + The syntax for both file-level and in-line suppression comments has been unified and made more robust to certain errors. In most cases, this will result in more suppression comments being read by Ruff, but there are a few instances where previously read comments will now log an error to the user instead. Please refer to the documentation on [*Error suppression*](https://docs.astral.sh/ruff/linter/#error-suppression) for the full specification. |
60 | 93 |
|
61 | 94 | - **Avoid unnecessary parentheses around with statements with a single context manager and a trailing comment** ([#14005](https://github.com/astral-sh/ruff/pull/14005))
|
62 | 95 |
|
@@ -1468,7 +1501,7 @@ The following fixes have been stabilized:
|
1468 | 1501 |
|
1469 | 1502 | ## 0.5.6
|
1470 | 1503 |
|
1471 |
| -Ruff 0.5.6 automatically enables linting and formatting of notebooks in _preview mode_. |
| 1504 | +Ruff 0.5.6 automatically enables linting and formatting of notebooks in *preview mode*. |
1472 | 1505 | You can opt-out of this behavior by adding `*.ipynb` to the `extend-exclude` setting.
|
1473 | 1506 |
|
1474 | 1507 | ```toml
|
@@ -2221,7 +2254,7 @@ To setup `ruff server` with your editor, refer to the [README.md](https://github
|
2221 | 2254 |
|
2222 | 2255 | ### Server
|
2223 | 2256 |
|
2224 |
| -_This section is devoted to updates for our new language server, written in Rust._ |
| 2257 | +*This section is devoted to updates for our new language server, written in Rust.* |
2225 | 2258 |
|
2226 | 2259 | - Enable ruff-specific source actions ([#10916](https://github.com/astral-sh/ruff/pull/10916))
|
2227 | 2260 | - Refreshes diagnostics for open files when file configuration is changed ([#10988](https://github.com/astral-sh/ruff/pull/10988))
|
@@ -3628,7 +3661,7 @@ Read Ruff's new [versioning policy](https://docs.astral.sh/ruff/versioning/).
|
3628 | 3661 | - \[`refurb`\] Add `single-item-membership-test` (`FURB171`) ([#7815](https://github.com/astral-sh/ruff/pull/7815))
|
3629 | 3662 | - \[`pylint`\] Add `and-or-ternary` (`R1706`) ([#7811](https://github.com/astral-sh/ruff/pull/7811))
|
3630 | 3663 |
|
3631 |
| -_New rules are added in [preview](https://docs.astral.sh/ruff/preview/)._ |
| 3664 | +*New rules are added in [preview](https://docs.astral.sh/ruff/preview/).* |
3632 | 3665 |
|
3633 | 3666 | ### Configuration
|
3634 | 3667 |
|
|
0 commit comments