Skip to content

Commit e41f889

Browse files
committed
Merge branch 'main' into dcreager/special-class
* main: [red-knot] Empty tuple is always-falsy (#17213) Run fuzzer with `--preview` (#17210) Bump 0.11.4 (#17212) [syntax-errors] Allow `yield` in base classes and annotations (#17206) Don't skip visiting non-tuple slice in `typing.Annotated` subscripts (#17201) [red-knot] mypy_primer: do not specify Python version (#17200) [red-knot] Add `Type.definition` method (#17153) Implement `Invalid rule provided` as rule RUF102 with `--fix` (#17138) [red-knot] Add basic on-hover to playground and LSP (#17057) [red-knot] don't remove negations when simplifying constrained typevars (#17189) [minor] Fix extra semicolon for clippy (#17188) [syntax-errors] Invalid syntax in annotations (#17101) [syntax-errors] Duplicate attributes in match class pattern (#17186) [syntax-errors] Fix multiple assignment for class keyword argument (#17184) use astral-sh/cargo-dist instead (#17187) Enable overindented docs lint (#17182)
2 parents aa64990 + 1a6a10b commit e41f889

File tree

86 files changed

+6600
-715
lines changed

Some content is hidden

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

86 files changed

+6600
-715
lines changed

.github/workflows/mypy_primer.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Install mypy_primer
4747
run: |
48-
uv tool install "git+https://github.com/astral-sh/mypy_primer.git@add-red-knot-support-v2"
48+
uv tool install "git+https://github.com/astral-sh/mypy_primer.git@add-red-knot-support-v3"
4949
5050
- name: Run mypy_primer
5151
shell: bash

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# This file was autogenerated by dist: https://opensource.axo.dev/cargo-dist/
1+
# This file was autogenerated by dist: https://github.com/astral-sh/cargo-dist
22
#
3-
# Copyright 2022-2024, axodotdev
3+
# Copyright 2025 Astral Software Inc.
44
# SPDX-License-Identifier: MIT or Apache-2.0
55
#
66
# CI that:
@@ -66,7 +66,7 @@ jobs:
6666
# we specify bash to get pipefail; it guards against the `curl` command
6767
# failing. otherwise `sh` won't catch that `curl` returned non-0
6868
shell: bash
69-
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.25.2-prerelease.3/cargo-dist-installer.sh | sh"
69+
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/cargo-dist/releases/download/v0.28.3/cargo-dist-installer.sh | sh"
7070
- name: Cache dist
7171
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
7272
with:

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## 0.11.4
4+
5+
### Preview features
6+
7+
- \[`ruff`\] Implement `invalid-rule-code` as `RUF102` ([#17138](https://github.com/astral-sh/ruff/pull/17138))
8+
- [syntax-errors] Detect duplicate keys in `match` mapping patterns ([#17129](https://github.com/astral-sh/ruff/pull/17129))
9+
- [syntax-errors] Detect duplicate attributes in `match` class patterns ([#17186](https://github.com/astral-sh/ruff/pull/17186))
10+
- [syntax-errors] Detect invalid syntax in annotations ([#17101](https://github.com/astral-sh/ruff/pull/17101))
11+
12+
### Bug fixes
13+
14+
- [syntax-errors] Fix multiple assignment error for class fields in `match` patterns ([#17184](https://github.com/astral-sh/ruff/pull/17184))
15+
- Don't skip visiting non-tuple slice in `typing.Annotated` subscripts ([#17201](https://github.com/astral-sh/ruff/pull/17201))
16+
317
## 0.11.3
418

519
### Preview features

Cargo.lock

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-6
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ rayon = { version = "1.10.0" }
124124
regex = { version = "1.10.2" }
125125
rustc-hash = { version = "2.0.0" }
126126
# When updating salsa, make sure to also update the revision in `fuzz/Cargo.toml`
127-
salsa = { git = "https://github.com/salsa-rs/salsa.git", rev = "296a8c78da1b54c76ff5795eb4c1e3fe2467e9fc"}
127+
salsa = { git = "https://github.com/salsa-rs/salsa.git", rev = "296a8c78da1b54c76ff5795eb4c1e3fe2467e9fc" }
128128
schemars = { version = "0.8.16" }
129129
seahash = { version = "4.1.0" }
130130
serde = { version = "1.0.197", features = ["derive"] }
@@ -228,10 +228,6 @@ redundant_clone = "warn"
228228
debug_assert_with_mut_call = "warn"
229229
unused_peekable = "warn"
230230

231-
# Has false positives
232-
# https://github.com/rust-lang/rust-clippy/issues/14275
233-
doc_overindented_list_items = "allow"
234-
235231
# Diagnostics are not actionable: Enable once https://github.com/rust-lang/rust-clippy/issues/13774 is resolved.
236232
large_stack_arrays = "allow"
237233

@@ -276,7 +272,7 @@ inherits = "release"
276272
# Config for 'dist'
277273
[workspace.metadata.dist]
278274
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
279-
cargo-dist-version = "0.25.2-prerelease.3"
275+
cargo-dist-version = "0.28.3"
280276
# CI backends to support
281277
ci = "github"
282278
# The installers to generate for each app

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ curl -LsSf https://astral.sh/ruff/install.sh | sh
149149
powershell -c "irm https://astral.sh/ruff/install.ps1 | iex"
150150

151151
# For a specific version.
152-
curl -LsSf https://astral.sh/ruff/0.11.3/install.sh | sh
153-
powershell -c "irm https://astral.sh/ruff/0.11.3/install.ps1 | iex"
152+
curl -LsSf https://astral.sh/ruff/0.11.4/install.sh | sh
153+
powershell -c "irm https://astral.sh/ruff/0.11.4/install.ps1 | iex"
154154
```
155155

156156
You can also install Ruff via [Homebrew](https://formulae.brew.sh/formula/ruff), [Conda](https://anaconda.org/conda-forge/ruff),
@@ -183,7 +183,7 @@ Ruff can also be used as a [pre-commit](https://pre-commit.com/) hook via [`ruff
183183
```yaml
184184
- repo: https://github.com/astral-sh/ruff-pre-commit
185185
# Ruff version.
186-
rev: v0.11.3
186+
rev: v0.11.4
187187
hooks:
188188
# Run the linter.
189189
- id: ruff

crates/red_knot_ide/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ruff_python_parser = { workspace = true }
1717
ruff_text_size = { workspace = true }
1818
red_knot_python_semantic = { workspace = true }
1919

20+
rustc-hash = { workspace = true }
2021
salsa = { workspace = true }
2122
smallvec = { workspace = true }
2223
tracing = { workspace = true }

0 commit comments

Comments
 (0)