Skip to content

Commit 7149f42

Browse files
committed
Merge branch 'main' into dcreager/infer-binary
* main: (60 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 0acdbe4 + 6362880 commit 7149f42

File tree

301 files changed

+17705
-3612
lines changed

Some content is hidden

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

301 files changed

+17705
-3612
lines changed

.github/renovate.json5

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
groupName: "Artifact GitHub Actions dependencies",
4646
matchManagers: ["github-actions"],
4747
matchDatasources: ["gitea-tags", "github-tags"],
48-
matchPackagePatterns: ["actions/.*-artifact"],
48+
matchPackageNames: ["actions/.*-artifact"],
4949
description: "Weekly update of artifact-related GitHub Actions dependencies",
5050
},
5151
{
@@ -61,7 +61,7 @@
6161
{
6262
// Disable updates of `zip-rs`; intentionally pinned for now due to ownership change
6363
// See: https://github.com/astral-sh/uv/issues/3642
64-
matchPackagePatterns: ["zip"],
64+
matchPackageNames: ["zip"],
6565
matchManagers: ["cargo"],
6666
enabled: false,
6767
},
@@ -70,7 +70,7 @@
7070
// with `mkdocs-material-insider`.
7171
// See: https://squidfunk.github.io/mkdocs-material/insiders/upgrade/
7272
matchManagers: ["pip_requirements"],
73-
matchPackagePatterns: ["mkdocs-material"],
73+
matchPackageNames: ["mkdocs-material"],
7474
enabled: false,
7575
},
7676
{
@@ -87,13 +87,13 @@
8787
{
8888
groupName: "Monaco",
8989
matchManagers: ["npm"],
90-
matchPackagePatterns: ["monaco"],
90+
matchPackageNames: ["monaco"],
9191
description: "Weekly update of the Monaco editor",
9292
},
9393
{
9494
groupName: "strum",
9595
matchManagers: ["cargo"],
96-
matchPackagePatterns: ["strum"],
96+
matchPackageNames: ["strum"],
9797
description: "Weekly update of strum dependencies",
9898
},
9999
{

.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: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,68 @@
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+
25+
## 0.8.5
26+
27+
### Preview features
28+
29+
- \[`airflow`\] Extend names moved from core to provider (`AIR303`) ([#15145](https://github.com/astral-sh/ruff/pull/15145), [#15159](https://github.com/astral-sh/ruff/pull/15159), [#15196](https://github.com/astral-sh/ruff/pull/15196), [#15216](https://github.com/astral-sh/ruff/pull/15216))
30+
- \[`airflow`\] Extend rule to check class attributes, methods, arguments (`AIR302`) ([#15054](https://github.com/astral-sh/ruff/pull/15054), [#15083](https://github.com/astral-sh/ruff/pull/15083))
31+
- \[`fastapi`\] Update `FAST002` to check keyword-only arguments ([#15119](https://github.com/astral-sh/ruff/pull/15119))
32+
- \[`flake8-type-checking`\] Disable `TC006` and `TC007` in stub files ([#15179](https://github.com/astral-sh/ruff/pull/15179))
33+
- \[`pylint`\] Detect nested methods correctly (`PLW1641`) ([#15032](https://github.com/astral-sh/ruff/pull/15032))
34+
- \[`ruff`\] Detect more strict-integer expressions (`RUF046`) ([#14833](https://github.com/astral-sh/ruff/pull/14833))
35+
- \[`ruff`\] Implement `falsy-dict-get-fallback` (`RUF056`) ([#15160](https://github.com/astral-sh/ruff/pull/15160))
36+
- \[`ruff`\] Implement `unnecessary-round` (`RUF057`) ([#14828](https://github.com/astral-sh/ruff/pull/14828))
37+
38+
### Rule changes
39+
40+
- Visit PEP 764 inline `TypedDict` keys as non-type-expressions ([#15073](https://github.com/astral-sh/ruff/pull/15073))
41+
- \[`flake8-comprehensions`\] Skip `C416` if comprehension contains unpacking ([#14909](https://github.com/astral-sh/ruff/pull/14909))
42+
- \[`flake8-pie`\] Allow `cast(SomeType, ...)` (`PIE796`) ([#15141](https://github.com/astral-sh/ruff/pull/15141))
43+
- \[`flake8-simplify`\] More precise inference for dictionaries (`SIM300`) ([#15164](https://github.com/astral-sh/ruff/pull/15164))
44+
- \[`flake8-use-pathlib`\] Catch redundant joins in `PTH201` and avoid syntax errors ([#15177](https://github.com/astral-sh/ruff/pull/15177))
45+
- \[`pycodestyle`\] Preserve original value format (`E731`) ([#15097](https://github.com/astral-sh/ruff/pull/15097))
46+
- \[`pydocstyle`\] Split on first whitespace character (`D403`) ([#15082](https://github.com/astral-sh/ruff/pull/15082))
47+
- \[`pyupgrade`\] Add all PEP-585 names to `UP006` rule ([#5454](https://github.com/astral-sh/ruff/pull/5454))
48+
49+
### Configuration
50+
51+
- \[`flake8-type-checking`\] Improve flexibility of `runtime-evaluated-decorators` ([#15204](https://github.com/astral-sh/ruff/pull/15204))
52+
- \[`pydocstyle`\] Add setting to ignore missing documentation for `*args` and `**kwargs` parameters (`D417`) ([#15210](https://github.com/astral-sh/ruff/pull/15210))
53+
- \[`ruff`\] Add an allowlist for `unsafe-markup-use` (`RUF035`) ([#15076](https://github.com/astral-sh/ruff/pull/15076))
54+
55+
### Bug fixes
56+
57+
- Fix type subscript on older python versions ([#15090](https://github.com/astral-sh/ruff/pull/15090))
58+
- Use `TypeChecker` for detecting `fastapi` routes ([#15093](https://github.com/astral-sh/ruff/pull/15093))
59+
- \[`pycodestyle`\] Avoid false positives and negatives related to type parameter default syntax (`E225`, `E251`) ([#15214](https://github.com/astral-sh/ruff/pull/15214))
60+
61+
### Documentation
62+
63+
- Fix incorrect doc in `shebang-not-executable` (`EXE001`) and add git+windows solution to executable bit ([#15208](https://github.com/astral-sh/ruff/pull/15208))
64+
- Rename rules currently not conforming to naming convention ([#15102](https://github.com/astral-sh/ruff/pull/15102))
65+
366
## 0.8.4
467

568
### Preview features

0 commit comments

Comments
 (0)