|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## 0.1.9 |
| 4 | + |
| 5 | +### Breaking changes |
| 6 | + |
| 7 | +- Add site-packages to default exclusions ([#9188](https://github.com/astral-sh/ruff/pull/9188)) |
| 8 | + |
| 9 | +### Preview features |
| 10 | + |
| 11 | +- Fix: Avoid parenthesizing subscript targets and values ([#9209](https://github.com/astral-sh/ruff/pull/9209)) |
| 12 | +- \[`pylint`\] Implement `too-many-locals` (`PLR0914`) ([#9163](https://github.com/astral-sh/ruff/pull/9163)) |
| 13 | +- Implement `reimplemented_operator` (FURB118) ([#9171](https://github.com/astral-sh/ruff/pull/9171)) |
| 14 | +- Add a rule to detect string members in runtime-evaluated unions ([#9143](https://github.com/astral-sh/ruff/pull/9143)) |
| 15 | +- Implement `no_blank_line_before_class_docstring` preview style ([#9154](https://github.com/astral-sh/ruff/pull/9154)) |
| 16 | + |
| 17 | +### Rule changes |
| 18 | + |
| 19 | +- `CONSTANT_CASE` variables are improperly flagged for yoda violation (`SIM300`) ([#9164](https://github.com/astral-sh/ruff/pull/9164)) |
| 20 | +- \[`flake8-pyi`\] Cover ParamSpecs and TypeVarTuples (`PYI018`) ([#9198](https://github.com/astral-sh/ruff/pull/9198)) |
| 21 | +- \[`flake8-bugbear`\] Add fix for `zip-without-explicit-strict` (`B905`) ([#9176](https://github.com/astral-sh/ruff/pull/9176)) |
| 22 | +- Add fix to automatically remove `print` and `pprint` statements (`T201`, `T203`) ([#9208](https://github.com/astral-sh/ruff/pull/9208)) |
| 23 | +- Prefer `Never` to `NoReturn` in auto-typing in Python >= 3.11 (`ANN201`) ([#9213](https://github.com/astral-sh/ruff/pull/9213)) |
| 24 | + |
| 25 | +### Formatter |
| 26 | + |
| 27 | +- `can_omit_optional_parentheses`: Exit early for unparenthesized expressions ([#9125](https://github.com/astral-sh/ruff/pull/9125)) |
| 28 | +- Fix `dynamic` mode with doctests so that it doesn't exceed configured line width ([#9129](https://github.com/astral-sh/ruff/pull/9129)) |
| 29 | +- Fix `can_omit_optional_parentheses` for expressions with a right most fstring ([#9124](https://github.com/astral-sh/ruff/pull/9124)) |
| 30 | +- Add `target_version` to formatter options ([#9220](https://github.com/astral-sh/ruff/pull/9220)) |
| 31 | + |
| 32 | +### CLI |
| 33 | + |
| 34 | +- Update `ruff format --check` to display message for already formatted files ([#9153](https://github.com/astral-sh/ruff/pull/9153)) |
| 35 | + |
| 36 | +### Bug fixes |
| 37 | + |
| 38 | +- Reverse order of arguments for `operator.contains` ([#9192](https://github.com/astral-sh/ruff/pull/9192)) |
| 39 | +- Iterate over lambdas in deferred type annotations ([#9175](https://github.com/astral-sh/ruff/pull/9175)) |
| 40 | +- Fix panic in `D208` with multibyte indent ([#9147](https://github.com/astral-sh/ruff/pull/9147)) |
| 41 | +- Add support for `NoReturn` in auto-return-typing ([#9206](https://github.com/astral-sh/ruff/pull/9206)) |
| 42 | +- Allow removal of `typing` from `exempt-modules` ([#9214](https://github.com/astral-sh/ruff/pull/9214)) |
| 43 | +- Avoid `mutable-class-default` violations for Pydantic subclasses ([#9187](https://github.com/astral-sh/ruff/pull/9187)) |
| 44 | +- Fix dropped union expressions for piped non-types in `PYI055` autofix ([#9161](https://github.com/astral-sh/ruff/pull/9161)) |
| 45 | +- Enable annotation quoting for multi-line expressions ([#9142](https://github.com/astral-sh/ruff/pull/9142)) |
| 46 | +- Deduplicate edits when quoting annotations ([#9140](https://github.com/astral-sh/ruff/pull/9140)) |
| 47 | +- Prevent invalid utf8 indexing in cell magic detection ([#9146](https://github.com/astral-sh/ruff/pull/9146)) |
| 48 | +- Avoid nested quotations in auto-quoting fix ([#9168](https://github.com/astral-sh/ruff/pull/9168)) |
| 49 | +- Add base-class inheritance detection to flake8-django rules ([#9151](https://github.com/astral-sh/ruff/pull/9151)) |
| 50 | +- Avoid `asyncio-dangling-task` violations on shadowed bindings ([#9215](https://github.com/astral-sh/ruff/pull/9215)) |
| 51 | + |
| 52 | +### Documentation |
| 53 | + |
| 54 | +- Fix blog post URL in changelog ([#9119](https://github.com/astral-sh/ruff/pull/9119)) |
| 55 | +- Add error suppression hint for multi-line strings ([#9205](https://github.com/astral-sh/ruff/pull/9205)) |
| 56 | +- Fix typo in SemanticModel.parent_expression docstring ([#9167](https://github.com/astral-sh/ruff/pull/9167)) |
| 57 | +- Document link between import sorting and formatter ([#9117](https://github.com/astral-sh/ruff/pull/9117)) |
| 58 | + |
3 | 59 | ## 0.1.8
|
4 | 60 |
|
5 | 61 | This release includes opt-in support for formatting Python snippets within
|
|
0 commit comments