|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 0.4.7 |
| 4 | + |
| 5 | +### Preview features |
| 6 | + |
| 7 | +- \[`flake8-pyi`\] Implement `PYI064` ([#11325](https://github.com/astral-sh/ruff/pull/11325)) |
| 8 | +- \[`flake8-pyi`\] Implement `PYI066` ([#11541](https://github.com/astral-sh/ruff/pull/11541)) |
| 9 | +- \[`flake8-pyi`\] Implement `PYI057` ([#11486](https://github.com/astral-sh/ruff/pull/11486)) |
| 10 | +- \[`pyflakes`\] Enable `F822` in `__init__.py` files by default ([#11370](https://github.com/astral-sh/ruff/pull/11370)) |
| 11 | + |
| 12 | +### Formatter |
| 13 | + |
| 14 | +- Fix incorrect placement of trailing stub function comments ([#11632](https://github.com/astral-sh/ruff/pull/11632)) |
| 15 | + |
| 16 | +### Server |
| 17 | + |
| 18 | +- Respect file exclusions in `ruff server` ([#11590](https://github.com/astral-sh/ruff/pull/11590)) |
| 19 | +- Add support for documents not exist on disk ([#11588](https://github.com/astral-sh/ruff/pull/11588)) |
| 20 | +- Add Vim and Kate setup guide for `ruff server` ([#11615](https://github.com/astral-sh/ruff/pull/11615)) |
| 21 | + |
| 22 | +### Bug fixes |
| 23 | + |
| 24 | +- Avoid removing newlines between docstring headers and rST blocks ([#11609](https://github.com/astral-sh/ruff/pull/11609)) |
| 25 | +- Infer indentation with imports when logical indent is absent ([#11608](https://github.com/astral-sh/ruff/pull/11608)) |
| 26 | +- Use char index rather than position for indent slice ([#11645](https://github.com/astral-sh/ruff/pull/11645)) |
| 27 | +- \[`flake8-comprehension`\] Strip parentheses around generators in `C400` ([#11607](https://github.com/astral-sh/ruff/pull/11607)) |
| 28 | +- Mark `repeated-isinstance-calls` as unsafe on Python 3.10 and later ([#11622](https://github.com/astral-sh/ruff/pull/11622)) |
| 29 | + |
| 30 | +## 0.4.6 |
| 31 | + |
| 32 | +### Breaking changes |
| 33 | + |
| 34 | +- Use project-relative paths when calculating GitLab fingerprints ([#11532](https://github.com/astral-sh/ruff/pull/11532)) |
| 35 | +- Bump minimum supported Windows version to Windows 10 ([#11613](https://github.com/astral-sh/ruff/pull/11613)) |
| 36 | + |
| 37 | +### Preview features |
| 38 | + |
| 39 | +- \[`flake8-async`\] Sleep with >24 hour interval should usually sleep forever (`ASYNC116`) ([#11498](https://github.com/astral-sh/ruff/pull/11498)) |
| 40 | + |
| 41 | +### Rule changes |
| 42 | + |
| 43 | +- \[`numpy`\] Add missing functions to NumPy 2.0 migration rule ([#11528](https://github.com/astral-sh/ruff/pull/11528)) |
| 44 | +- \[`mccabe`\] Consider irrefutable pattern similar to `if .. else` for `C901` ([#11565](https://github.com/astral-sh/ruff/pull/11565)) |
| 45 | +- Consider `match`-`case` statements for `C901`, `PLR0912`, and `PLR0915` ([#11521](https://github.com/astral-sh/ruff/pull/11521)) |
| 46 | +- Remove empty strings when converting to f-string (`UP032`) ([#11524](https://github.com/astral-sh/ruff/pull/11524)) |
| 47 | +- \[`flake8-bandit`\] `request-without-timeout` should warn for `requests.request` ([#11548](https://github.com/astral-sh/ruff/pull/11548)) |
| 48 | +- \[`flake8-self`\] Ignore sunder accesses in `flake8-self` rules ([#11546](https://github.com/astral-sh/ruff/pull/11546)) |
| 49 | +- \[`pyupgrade`\] Lint for `TypeAliasType` usages (`UP040`) ([#11530](https://github.com/astral-sh/ruff/pull/11530)) |
| 50 | + |
| 51 | +### Server |
| 52 | + |
| 53 | +- Respect excludes in `ruff server` configuration discovery ([#11551](https://github.com/astral-sh/ruff/pull/11551)) |
| 54 | +- Use default settings if initialization options is empty or not provided ([#11566](https://github.com/astral-sh/ruff/pull/11566)) |
| 55 | +- `ruff server` correctly treats `.pyi` files as stub files ([#11535](https://github.com/astral-sh/ruff/pull/11535)) |
| 56 | +- `ruff server` searches for configuration in parent directories ([#11537](https://github.com/astral-sh/ruff/pull/11537)) |
| 57 | +- `ruff server`: An empty code action filter no longer returns notebook source actions ([#11526](https://github.com/astral-sh/ruff/pull/11526)) |
| 58 | + |
| 59 | +### Bug fixes |
| 60 | + |
| 61 | +- \[`flake8-logging-format`\] Fix autofix title in `logging-warn` (`G010`) ([#11514](https://github.com/astral-sh/ruff/pull/11514)) |
| 62 | +- \[`refurb`\] Avoid recommending `operator.itemgetter` with dependence on lambda arguments ([#11574](https://github.com/astral-sh/ruff/pull/11574)) |
| 63 | +- \[`flake8-simplify`\] Avoid recommending context manager in `__enter__` implementations ([#11575](https://github.com/astral-sh/ruff/pull/11575)) |
| 64 | +- Create intermediary directories for `--output-file` ([#11550](https://github.com/astral-sh/ruff/pull/11550)) |
| 65 | +- Propagate reads on global variables ([#11584](https://github.com/astral-sh/ruff/pull/11584)) |
| 66 | +- Treat all `singledispatch` arguments as runtime-required ([#11523](https://github.com/astral-sh/ruff/pull/11523)) |
| 67 | + |
3 | 68 | ## 0.4.5 |
4 | 69 |
|
5 | 70 | ### Ruff's language server is now in Beta |
@@ -134,6 +199,10 @@ To read more about this exciting milestone, check out our [blog post](https://as |
134 | 199 | - Avoid allocations for isort module names ([#11251](https://github.com/astral-sh/ruff/pull/11251)) |
135 | 200 | - Build a separate ARM wheel for macOS ([#11149](https://github.com/astral-sh/ruff/pull/11149)) |
136 | 201 |
|
| 202 | +### Windows |
| 203 | + |
| 204 | +- Increase the minimum requirement to Windows 10. |
| 205 | + |
137 | 206 | ## 0.4.2 |
138 | 207 |
|
139 | 208 | ### Rule changes |
|
0 commit comments