|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## 0.5.6 |
| 4 | + |
| 5 | +Ruff 0.5.6 automatically enables linting and formatting of notebooks in *preview mode*. |
| 6 | +You can opt-out of this behavior by adding `*.ipynb` to the `extend-exclude` setting. |
| 7 | + |
| 8 | +### Preview features |
| 9 | + |
| 10 | +- Enable notebooks by default in preview mode ([#12621](https://github.com/astral-sh/ruff/pull/12621)) |
| 11 | +- \[`flake8-builtins`\] Implement import, lambda, and module shadowing ([#12546](https://github.com/astral-sh/ruff/pull/12546)) |
| 12 | +- \[`pydoclint`\] Add `docstring-missing-returns` (`DOC201`) and `docstring-extraneous-returns` (`DOC202`) ([#12485](https://github.com/astral-sh/ruff/pull/12485)) |
| 13 | + |
| 14 | +### Rule changes |
| 15 | + |
| 16 | +- \[`flake8-return`\] Exempt cached properties and other property-like decorators from explicit return rule (`RET501`) ([#12563](https://github.com/astral-sh/ruff/pull/12563)) |
| 17 | + |
| 18 | +### Server |
| 19 | + |
| 20 | +- Make server panic hook more error resilient ([#12610](https://github.com/astral-sh/ruff/pull/12610)) |
| 21 | +- Use `$/logTrace` for server trace logs in Zed and VS Code ([#12564](https://github.com/astral-sh/ruff/pull/12564)) |
| 22 | +- Keep track of deleted cells for reorder change request ([#12575](https://github.com/astral-sh/ruff/pull/12575)) |
| 23 | + |
| 24 | +### Configuration |
| 25 | + |
| 26 | +- \[`flake8-implicit-str-concat`\] Always allow explicit multi-line concatenations when implicit are banned ([#12532](https://github.com/astral-sh/ruff/pull/12532)) |
| 27 | + |
| 28 | +### Bug fixes |
| 29 | + |
| 30 | +- \[`flake8-async`\] Avoid unused async when context manager includes `TaskGroup` ([#12605](https://github.com/astral-sh/ruff/pull/12605)) |
| 31 | +- \[`flake8-slots`\] Avoid recommending `__slots__` for classes that inherit from more than `namedtuple` ([#12531](https://github.com/astral-sh/ruff/pull/12531)) |
| 32 | +- \[`isort`\] Avoid marking required imports as unused ([#12537](https://github.com/astral-sh/ruff/pull/12537)) |
| 33 | +- \[`isort`\] Preserve trailing inline comments on import-from statements ([#12498](https://github.com/astral-sh/ruff/pull/12498)) |
| 34 | +- \[`pycodestyle`\] Add newlines before comments (`E305`) ([#12606](https://github.com/astral-sh/ruff/pull/12606)) |
| 35 | +- \[`pycodestyle`\] Don't attach comments with mismatched indents ([#12604](https://github.com/astral-sh/ruff/pull/12604)) |
| 36 | +- \[`pyflakes`\] Fix preview-mode bugs in `F401` when attempting to autofix unused first-party submodule imports in an `__init__.py` file ([#12569](https://github.com/astral-sh/ruff/pull/12569)) |
| 37 | +- \[`pylint`\] Respect start index in `unnecessary-list-index-lookup` ([#12603](https://github.com/astral-sh/ruff/pull/12603)) |
| 38 | +- \[`pyupgrade`\] Avoid recommending no-argument super in `slots=True` dataclasses ([#12530](https://github.com/astral-sh/ruff/pull/12530)) |
| 39 | +- \[`pyupgrade`\] Use colon rather than dot formatting for integer-only types ([#12534](https://github.com/astral-sh/ruff/pull/12534)) |
| 40 | +- Fix NFKC normalization bug when removing unused imports ([#12571](https://github.com/astral-sh/ruff/pull/12571)) |
| 41 | + |
| 42 | +### Documentation |
| 43 | + |
| 44 | +- |
| 45 | +- Recommend client config for `trace` setting in Neovim ([#12562](https://github.com/astral-sh/ruff/pull/12562)) |
| 46 | + |
| 47 | +### Other changes |
| 48 | + |
| 49 | +- Consider more stdlib decorators to be property-like ([#12583](https://github.com/astral-sh/ruff/pull/12583)) |
| 50 | +- Improve handling of metaclasses in various linter rules ([#12579](https://github.com/astral-sh/ruff/pull/12579)) |
| 51 | +- Improve consistency between linter rules in determining whether a function is property ([#12581](https://github.com/astral-sh/ruff/pull/12581)) |
| 52 | + |
3 | 53 | ## 0.5.5
|
4 | 54 |
|
5 | 55 | ### Preview features
|
|
0 commit comments