Skip to content

Commit 2b4119f

Browse files
committed
Merge branch 'main' into dcreager/class-match
* main: (29 commits) [`ruff`] Dataclass enums (`RUF049`) (#15299) Better error message when `--config` is given a table key and a non-inline-table value (#15266) Update pre-commit dependencies (#15289) Don't fix in ecosystem check (#15267) Update Rust crate itertools to 0.14.0 (#15287) Remove accidental empty block at the bottom of `split-static-string (SIM905)` doc (#15290) Update Rust crate clearscreen to v4 (#15288) Update Rust crate insta to v1.42.0 (#15286) Update NPM Development dependencies (#15285) Update dependency uuid to v11.0.4 (#15284) Update dependency ruff to v0.8.6 (#15283) Update Rust crate syn to v2.0.95 (#15282) Update Rust crate matchit to v0.8.6 (#15281) Update Rust crate bstr to v1.11.3 (#15280) [red-knot] Future-proof `Type::is_disjoint_from()` (#15262) [red-knot] Improve `Type::is_disjoint_from()` for `KnownInstanceType`s (#15261) [red-knot] Minor simplifications and improvements to constraint narrowing logic (#15270) Allow assigning ellipsis literal as parameter default value (#14982) [red-knot] fix control flow for assignment expressions in elif tests (#15274) [`refurb`] Mark fix as unsafe when the right-hand side is a string (`FURB171`) (#15273) ...
2 parents 8a05207 + 6362880 commit 2b4119f

File tree

67 files changed

+1057
-1129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1057
-1129
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ jobs:
386386
- name: "Install Rust toolchain"
387387
run: rustup component add rustfmt
388388
- uses: Swatinem/rust-cache@v2
389-
- run: ./scripts/add_rule.py --name DoTheThing --prefix PL --code C0999 --linter pylint
389+
- run: ./scripts/add_rule.py --name DoTheThing --prefix F --code 999 --linter pyflakes
390390
- run: cargo check
391391
- run: cargo fmt --all --check
392392
- run: |

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ repos:
5959
- black==24.10.0
6060

6161
- repo: https://github.com/crate-ci/typos
62-
rev: v1.28.4
62+
rev: v1.29.4
6363
hooks:
6464
- id: typos
6565

@@ -73,7 +73,7 @@ repos:
7373
pass_filenames: false # This makes it a lot faster
7474

7575
- repo: https://github.com/astral-sh/ruff-pre-commit
76-
rev: v0.8.4
76+
rev: v0.8.6
7777
hooks:
7878
- id: ruff-format
7979
- id: ruff
@@ -103,7 +103,7 @@ repos:
103103
# `actionlint` hook, for verifying correct syntax in GitHub Actions workflows.
104104
# Some additional configuration for `actionlint` can be found in `.github/actionlint.yaml`.
105105
- repo: https://github.com/rhysd/actionlint
106-
rev: v1.7.5
106+
rev: v1.7.6
107107
hooks:
108108
- id: actionlint
109109
stages:

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Changelog
22

3+
## 0.8.6
4+
5+
### Preview features
6+
7+
- \[`format`\]: Preserve multiline implicit concatenated strings in docstring positions ([#15126](https://github.com/astral-sh/ruff/pull/15126))
8+
- \[`ruff`\] Add rule to detect empty literal in deque call (`RUF025`) ([#15104](https://github.com/astral-sh/ruff/pull/15104))
9+
- \[`ruff`\] Avoid reporting when `ndigits` is possibly negative (`RUF057`) ([#15234](https://github.com/astral-sh/ruff/pull/15234))
10+
11+
### Rule changes
12+
13+
- \[`flake8-todos`\] remove issue code length restriction (`TD003`) ([#15175](https://github.com/astral-sh/ruff/pull/15175))
14+
- \[`pyflakes`\] Ignore errors in `@no_type_check` string annotations (`F722`, `F821`) ([#15215](https://github.com/astral-sh/ruff/pull/15215))
15+
16+
### CLI
17+
18+
- Show errors for attempted fixes only when passed `--verbose` ([#15237](https://github.com/astral-sh/ruff/pull/15237))
19+
20+
### Bug fixes
21+
22+
- \[`ruff`\] Avoid syntax error when removing int over multiple lines (`RUF046`) ([#15230](https://github.com/astral-sh/ruff/pull/15230))
23+
- \[`pyupgrade`\] Revert "Add all PEP-585 names to `UP006` rule" ([#15250](https://github.com/astral-sh/ruff/pull/15250))
24+
325
## 0.8.5
426

527
### Preview features

0 commit comments

Comments
 (0)