|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## 0.1.12 |
| 4 | + |
| 5 | +### Preview features |
| 6 | + |
| 7 | +- Formatter: Hug multiline-strings in preview style ([#9243](https://github.com/astral-sh/ruff/pull/9243)) |
| 8 | +- \[`flake8-bandit`\] Add `ssl-with-no-version` (`S504`) ([#9384](https://github.com/astral-sh/ruff/pull/9384)) |
| 9 | +- \[`flake8-bandit`\] Implement `ssl-insecure-version` (`S502`) ([#9390](https://github.com/astral-sh/ruff/pull/9390)) |
| 10 | +- \[`flake8-bandit`\] Implement `ssl-with-bad-defaults` (`S503`) ([#9391](https://github.com/astral-sh/ruff/pull/9391)) |
| 11 | +- \[`flake8-bandit`\] Implement suspicious import rules (`S4XX`) ([#8831](https://github.com/astral-sh/ruff/pull/8831)) |
| 12 | +- \[`flake8-simplify`\] Implement `zip-dict-keys-and-values` (`SIM911`) ([#9460](https://github.com/astral-sh/ruff/pull/9460)) |
| 13 | +- \[`pyflakes`\] Add a fix for `redefined-while-unused` (`F811`) ([#9419](https://github.com/astral-sh/ruff/pull/9419)) |
| 14 | +- \[`pylint`\] Implement `unnecessary-dunder-call` (`C2801`) ([#9166](https://github.com/astral-sh/ruff/pull/9166)) |
| 15 | +- \[`ruff`\] Add `parenthesize-chained-operators` (`RUF021`) to enforce parentheses in `a or b and c` ([#9440](https://github.com/astral-sh/ruff/pull/9440)) |
| 16 | + |
| 17 | +### Rule changes |
| 18 | + |
| 19 | +- \[`flake8-boolean-trap`\] Allow Boolean positional arguments in setters ([#9429](https://github.com/astral-sh/ruff/pull/9429)) |
| 20 | +- \[`flake8-builtins`\] Restrict `builtin-attribute-shadowing` (`A003`) to actual shadowed references ([#9462](https://github.com/astral-sh/ruff/pull/9462)) |
| 21 | +- \[`flake8-pyi`\] Add fix for `generator-return-from-iter-method` (`PYI058`) ([#9355](https://github.com/astral-sh/ruff/pull/9355)) |
| 22 | +- \[`pyflakes`\] Don't flag `redefined-while-unused` (`F811`) in `if` branches ([#9418](https://github.com/astral-sh/ruff/pull/9418)) |
| 23 | +- \[`pyupgrade`\] Add some additional Python 3.12 typing members to `deprecated-import` ([#9445](https://github.com/astral-sh/ruff/pull/9445)) |
| 24 | +- \[`ruff`\] Add fix for `parenthesize-chained-operators` (`RUF021`) ([#9449](https://github.com/astral-sh/ruff/pull/9449)) |
| 25 | +- \[`ruff`\] Include subscripts and attributes in static key rule (`RUF011`) ([#9416](https://github.com/astral-sh/ruff/pull/9416)) |
| 26 | +- \[`ruff`\] Support variable keys in static dictionary key rule (`RUF011`) ([#9411](https://github.com/astral-sh/ruff/pull/9411)) |
| 27 | + |
| 28 | +### Formatter |
| 29 | + |
| 30 | +- Generate deterministic IDs when formatting notebooks ([#9359](https://github.com/astral-sh/ruff/pull/9359)) |
| 31 | +- Allow `# fmt: skip` with interspersed same-line comments ([#9395](https://github.com/astral-sh/ruff/pull/9395)) |
| 32 | +- Parenthesize breaking named expressions in match guards ([#9396](https://github.com/astral-sh/ruff/pull/9396)) |
| 33 | + |
| 34 | +### Bug fixes |
| 35 | + |
| 36 | +- Add cell indexes to all diagnostics ([#9387](https://github.com/astral-sh/ruff/pull/9387)) |
| 37 | +- Avoid infinite loop in constant vs. `None` comparisons ([#9376](https://github.com/astral-sh/ruff/pull/9376)) |
| 38 | +- Handle raises with implicit alternate branches ([#9377](https://github.com/astral-sh/ruff/pull/9377)) |
| 39 | +- Ignore trailing quotes for unclosed l-brace errors ([#9388](https://github.com/astral-sh/ruff/pull/9388)) |
| 40 | +- Respect multi-segment submodule imports when resolving qualified names ([#9382](https://github.com/astral-sh/ruff/pull/9382)) |
| 41 | +- Use `DisplayParseError` for stdin parser errors ([#9409](https://github.com/astral-sh/ruff/pull/9409)) |
| 42 | +- Use `comment_ranges` for isort directive extraction ([#9414](https://github.com/astral-sh/ruff/pull/9414)) |
| 43 | +- Use transformed source code for diagnostic locations ([#9408](https://github.com/astral-sh/ruff/pull/9408)) |
| 44 | +- \[`flake8-pyi`\] Exclude `warnings.deprecated` and `typing_extensions.deprecated` arguments ([#9423](https://github.com/astral-sh/ruff/pull/9423)) |
| 45 | +- \[`flake8-pyi`\] Fix false negative for `unused-private-protocol` (`PYI046`) with unused generic protocols ([#9405](https://github.com/astral-sh/ruff/pull/9405)) |
| 46 | +- \[`pydocstyle`\] Disambiguate argument descriptors from section headers ([#9427](https://github.com/astral-sh/ruff/pull/9427)) |
| 47 | +- \[`pylint`\] Homogenize `PLR0914` message to match other `PLR09XX` rules ([#9399](https://github.com/astral-sh/ruff/pull/9399)) |
| 48 | +- \[`ruff`\] Allow `Hashable = None` in type annotations (`RUF013`) ([#9442](https://github.com/astral-sh/ruff/pull/9442)) |
| 49 | + |
| 50 | +### Documentation |
| 51 | + |
| 52 | +- Fix admonition hyperlink colouring ([#9385](https://github.com/astral-sh/ruff/pull/9385)) |
| 53 | +- Add missing preview link ([#9386](https://github.com/astral-sh/ruff/pull/9386)) |
| 54 | + |
3 | 55 | ## 0.1.11
|
4 | 56 |
|
5 | 57 | ### Preview features
|
|
0 commit comments