Skip to content

Commit 6b55671

Browse files
committed
Merge branch 'main' into constructor-bindings-refactor
* main: (45 commits) [ty] Fix wrong inlay hints for overloaded function arguments (astral-sh#23179) [ty] Respect `@no_type_check` when combined with other decorators (astral-sh#23177) [ty] Use type context when inferring constructor argument types (astral-sh#23139) [`airflow`] Add ruff rules to catch deprecated attribute access from context key for Airflow 3.0 (`AIR301`) (astral-sh#22850) Support formatting `pycon` markdown code blocks (astral-sh#23112) Markdown formatting in LSP (astral-sh#23063) Instruct Claude to use comments more sparingly (astral-sh#23181) [`flake8-gettext`] Fix false negatives for plural argument of ngettext (`INT001`, `INT002`, `INT003`) (astral-sh#21078) [ty] Invoking goto-def on parentheses of a class constructor call takes you too constructor method [ty] Make goto definition on class constructor always go to class definition [ty] Assign lower completions ranking to deprecated functions and classes (astral-sh#23089) [ty] Fix parameter references across files via keyword args (astral-sh#23012) [ty] Exclude enclosing class for base completions (astral-sh#23141) [`pyupgrade`] Fix syntax error on string with newline escape and comment (`UP037`) (astral-sh#22968) [ty] Improve documentation for `expect_single_definition` method (astral-sh#23175) [ty] Configure check mode for all projects Add `home-assistant` to ecosystem projects (astral-sh#23132) Add tabbed shell completion documentation (astral-sh#23169) Bump typing conformance-suite pin (astral-sh#23174) [ty] Fix invalid diagnostic location for a sub-call to a specialized ParamSpec (astral-sh#23036) ...
2 parents afd2ea4 + 11b6cfd commit 6b55671

97 files changed

Lines changed: 3639 additions & 857 deletions

File tree

Some content is hidden

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

.github/workflows/build-docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
4848

49-
- uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
49+
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
5050
with:
5151
registry: ghcr.io
5252
username: ${{ github.repository_owner }}
@@ -137,7 +137,7 @@ jobs:
137137
type=pep440,pattern={{ version }},value=${{ fromJson(inputs.plan).announcement_tag }}
138138
type=pep440,pattern={{ major }}.{{ minor }},value=${{ fromJson(inputs.plan).announcement_tag }}
139139
140-
- uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
140+
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
141141
with:
142142
registry: ghcr.io
143143
username: ${{ github.repository_owner }}
@@ -175,7 +175,7 @@ jobs:
175175
steps:
176176
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
177177

178-
- uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
178+
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
179179
with:
180180
registry: ghcr.io
181181
username: ${{ github.repository_owner }}
@@ -282,7 +282,7 @@ jobs:
282282
type=pep440,pattern={{ version }},value=${{ fromJson(inputs.plan).announcement_tag }}
283283
type=pep440,pattern={{ major }}.{{ minor }},value=${{ fromJson(inputs.plan).announcement_tag }}
284284
285-
- uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
285+
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
286286
with:
287287
registry: ghcr.io
288288
username: ${{ github.repository_owner }}

.github/workflows/ci.yaml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -281,17 +281,17 @@ jobs:
281281
- name: "Install mold"
282282
uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
283283
- name: "Install cargo nextest"
284-
uses: taiki-e/install-action@887bc4e03483810873d617344dd5189cd82e7b8b # v2.67.11
284+
uses: taiki-e/install-action@650c5ca14212efbbf3e580844b04bdccf68dac31 # v2.67.18
285285
with:
286286
tool: cargo-nextest
287287
- name: "Install cargo insta"
288-
uses: taiki-e/install-action@887bc4e03483810873d617344dd5189cd82e7b8b # v2.67.11
288+
uses: taiki-e/install-action@650c5ca14212efbbf3e580844b04bdccf68dac31 # v2.67.18
289289
with:
290290
tool: cargo-insta
291291
- name: "Install uv"
292-
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
292+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
293293
with:
294-
version: "0.9.28"
294+
version: "0.10.0"
295295
enable-cache: "true"
296296
- name: ty mdtests (GitHub annotations)
297297
if: ${{ needs.determine_changes.outputs.ty == 'true' }}
@@ -344,13 +344,13 @@ jobs:
344344
- name: "Install mold"
345345
uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
346346
- name: "Install cargo nextest"
347-
uses: taiki-e/install-action@887bc4e03483810873d617344dd5189cd82e7b8b # v2.67.11
347+
uses: taiki-e/install-action@650c5ca14212efbbf3e580844b04bdccf68dac31 # v2.67.18
348348
with:
349349
tool: cargo-nextest
350350
- name: "Install uv"
351-
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
351+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
352352
with:
353-
version: "0.9.28"
353+
version: "0.10.0"
354354
enable-cache: "true"
355355
- name: "Run tests"
356356
run: cargo nextest run --cargo-profile profiling --all-features
@@ -378,13 +378,13 @@ jobs:
378378
- name: "Install Rust toolchain"
379379
run: rustup show
380380
- name: "Install cargo nextest"
381-
uses: taiki-e/install-action@887bc4e03483810873d617344dd5189cd82e7b8b # v2.67.11
381+
uses: taiki-e/install-action@650c5ca14212efbbf3e580844b04bdccf68dac31 # v2.67.18
382382
with:
383383
tool: cargo-nextest
384384
- name: "Install uv"
385-
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
385+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
386386
with:
387-
version: "0.9.28"
387+
version: "0.10.0"
388388
enable-cache: "true"
389389
- name: "Run tests"
390390
run: |
@@ -471,7 +471,7 @@ jobs:
471471
- name: "Install mold"
472472
uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
473473
- name: "Install cargo-binstall"
474-
uses: cargo-bins/cargo-binstall@11f258db84cec40fc56c7b10bfc37c31dd9a3c98 # v1.17.3
474+
uses: cargo-bins/cargo-binstall@ec80feb9e330418e014932e5982599255eff6dbb # v1.17.4
475475
- name: "Install cargo-fuzz"
476476
# Download the latest version from quick install and not the github releases because github releases only has MUSL targets.
477477
run: cargo binstall cargo-fuzz --force --disable-strategies crate-meta-data --no-confirm
@@ -489,9 +489,9 @@ jobs:
489489
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
490490
with:
491491
persist-credentials: false
492-
- uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
492+
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
493493
with:
494-
version: "0.9.28"
494+
version: "0.10.0"
495495
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
496496
with:
497497
shared-key: ruff-linux-debug
@@ -526,9 +526,9 @@ jobs:
526526
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
527527
with:
528528
save-if: ${{ github.ref == 'refs/heads/main' }}
529-
- uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
529+
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
530530
with:
531-
version: "0.9.28"
531+
version: "0.10.0"
532532
- name: "Install Rust toolchain"
533533
run: rustup component add rustfmt
534534
# Run all code generation scripts, and verify that the current output is
@@ -568,11 +568,11 @@ jobs:
568568
ref: ${{ github.event.pull_request.base.ref }}
569569
persist-credentials: false
570570

571-
- uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
571+
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
572572
with:
573573
python-version: ${{ env.PYTHON_VERSION }}
574574
activate-environment: true
575-
version: "0.9.28"
575+
version: "0.10.0"
576576

577577
- name: "Install Rust toolchain"
578578
run: rustup show
@@ -676,9 +676,9 @@ jobs:
676676
with:
677677
fetch-depth: 0
678678
persist-credentials: false
679-
- uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
679+
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
680680
with:
681-
version: "0.9.28"
681+
version: "0.10.0"
682682
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
683683
with:
684684
save-if: ${{ github.ref == 'refs/heads/main' }}
@@ -724,7 +724,7 @@ jobs:
724724
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
725725
with:
726726
persist-credentials: false
727-
- uses: cargo-bins/cargo-binstall@11f258db84cec40fc56c7b10bfc37c31dd9a3c98 # v1.17.3
727+
- uses: cargo-bins/cargo-binstall@ec80feb9e330418e014932e5982599255eff6dbb # v1.17.4
728728
- run: cargo binstall --no-confirm cargo-shear
729729
- run: cargo shear
730730

@@ -737,9 +737,9 @@ jobs:
737737
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
738738
with:
739739
persist-credentials: false
740-
- uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
740+
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
741741
with:
742-
version: "0.9.28"
742+
version: "0.10.0"
743743
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
744744
with:
745745
save-if: ${{ github.ref == 'refs/heads/main' }}
@@ -790,14 +790,14 @@ jobs:
790790
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
791791
with:
792792
persist-credentials: false
793-
- uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
793+
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
794794
with:
795-
version: "0.9.28"
795+
version: "0.10.0"
796796
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
797797
with:
798798
node-version: 24
799799
- name: "Cache prek"
800-
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
800+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
801801
with:
802802
path: ~/.cache/prek
803803
key: prek-${{ hashFiles('.pre-commit-config.yaml') }}
@@ -826,11 +826,11 @@ jobs:
826826
- name: "Install Rust toolchain"
827827
run: rustup show
828828
- name: Install uv
829-
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
829+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
830830
with:
831831
python-version: 3.13
832832
activate-environment: true
833-
version: "0.9.28"
833+
version: "0.10.0"
834834
- name: "Install dependencies"
835835
run: uv pip install -r docs/requirements.txt
836836
- name: "Update README File"
@@ -979,23 +979,23 @@ jobs:
979979
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
980980
with:
981981
save-if: ${{ github.ref == 'refs/heads/main' }}
982-
- uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
982+
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
983983
with:
984-
version: "0.9.28"
984+
version: "0.10.0"
985985

986986
- name: "Install Rust toolchain"
987987
run: rustup show
988988

989989
- name: "Install codspeed"
990-
uses: taiki-e/install-action@887bc4e03483810873d617344dd5189cd82e7b8b # v2.67.11
990+
uses: taiki-e/install-action@650c5ca14212efbbf3e580844b04bdccf68dac31 # v2.67.18
991991
with:
992992
tool: cargo-codspeed
993993

994994
- name: "Build benchmarks"
995995
run: cargo codspeed build --features "codspeed,ruff_instrumented" --profile profiling --no-default-features -p ruff_benchmark --bench formatter --bench lexer --bench linter --bench parser
996996

997997
- name: "Run benchmarks"
998-
uses: CodSpeedHQ/action@e736f0d2aeb36da38e9f08eca4dff7967408d154 # v4.8.2
998+
uses: CodSpeedHQ/action@208425962c215de49ed713e18c4b9bde9bda5c52 # v4.10.2
999999
with:
10001000
mode: simulation
10011001
run: cargo codspeed run
@@ -1026,7 +1026,7 @@ jobs:
10261026
run: rustup show
10271027

10281028
- name: "Install codspeed"
1029-
uses: taiki-e/install-action@887bc4e03483810873d617344dd5189cd82e7b8b # v2.67.11
1029+
uses: taiki-e/install-action@650c5ca14212efbbf3e580844b04bdccf68dac31 # v2.67.18
10301030
with:
10311031
tool: cargo-codspeed
10321032

@@ -1060,12 +1060,12 @@ jobs:
10601060
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
10611061
with:
10621062
persist-credentials: false
1063-
- uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
1063+
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
10641064
with:
1065-
version: "0.9.28"
1065+
version: "0.10.0"
10661066

10671067
- name: "Install codspeed"
1068-
uses: taiki-e/install-action@887bc4e03483810873d617344dd5189cd82e7b8b # v2.67.11
1068+
uses: taiki-e/install-action@650c5ca14212efbbf3e580844b04bdccf68dac31 # v2.67.18
10691069
with:
10701070
tool: cargo-codspeed
10711071

@@ -1080,7 +1080,7 @@ jobs:
10801080
run: find target/codspeed -type f -exec chmod +x {} +
10811081

10821082
- name: "Run benchmarks"
1083-
uses: CodSpeedHQ/action@e736f0d2aeb36da38e9f08eca4dff7967408d154 # v4.8.2
1083+
uses: CodSpeedHQ/action@208425962c215de49ed713e18c4b9bde9bda5c52 # v4.10.2
10841084
with:
10851085
mode: simulation
10861086
run: cargo codspeed run --bench ty "${{ matrix.benchmark }}"
@@ -1111,15 +1111,15 @@ jobs:
11111111
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
11121112
with:
11131113
save-if: ${{ github.ref == 'refs/heads/main' }}
1114-
- uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
1114+
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
11151115
with:
1116-
version: "0.9.28"
1116+
version: "0.10.0"
11171117

11181118
- name: "Install Rust toolchain"
11191119
run: rustup show
11201120

11211121
- name: "Install codspeed"
1122-
uses: taiki-e/install-action@887bc4e03483810873d617344dd5189cd82e7b8b # v2.67.11
1122+
uses: taiki-e/install-action@650c5ca14212efbbf3e580844b04bdccf68dac31 # v2.67.18
11231123
with:
11241124
tool: cargo-codspeed
11251125

@@ -1155,12 +1155,12 @@ jobs:
11551155
with:
11561156
persist-credentials: false
11571157

1158-
- uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
1158+
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
11591159
with:
1160-
version: "0.9.28"
1160+
version: "0.10.0"
11611161

11621162
- name: "Install codspeed"
1163-
uses: taiki-e/install-action@887bc4e03483810873d617344dd5189cd82e7b8b # v2.67.11
1163+
uses: taiki-e/install-action@650c5ca14212efbbf3e580844b04bdccf68dac31 # v2.67.18
11641164
with:
11651165
tool: cargo-codspeed
11661166

@@ -1175,7 +1175,7 @@ jobs:
11751175
run: find target/codspeed -type f -exec chmod +x {} +
11761176

11771177
- name: "Run benchmarks"
1178-
uses: CodSpeedHQ/action@e736f0d2aeb36da38e9f08eca4dff7967408d154 # v4.8.2
1178+
uses: CodSpeedHQ/action@208425962c215de49ed713e18c4b9bde9bda5c52 # v4.10.2
11791179
env:
11801180
# enabling walltime flamegraphs adds ~6 minutes to the CI time, and they don't
11811181
# appear to provide much useful insight for our walltime benchmarks right now

.github/workflows/daily_fuzz.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3535
with:
3636
persist-credentials: false
37-
- uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
37+
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
3838
with:
39-
version: "0.9.28"
39+
version: "0.10.0"
4040
- name: "Install Rust toolchain"
4141
run: rustup show
4242
- name: "Install mold"

.github/workflows/mypy_primer.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ jobs:
4848
persist-credentials: false
4949

5050
- name: Install the latest version of uv
51-
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
51+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
5252
with:
53-
version: "0.9.28"
53+
version: "0.10.0"
5454

5555
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
5656
with:
@@ -89,9 +89,9 @@ jobs:
8989
persist-credentials: false
9090

9191
- name: Install the latest version of uv
92-
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
92+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
9393
with:
94-
version: "0.9.28"
94+
version: "0.10.0"
9595

9696
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
9797
with:
@@ -133,9 +133,9 @@ jobs:
133133
persist-credentials: false
134134

135135
- name: Install the latest version of uv
136-
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
136+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
137137
with:
138-
version: "0.9.28"
138+
version: "0.10.0"
139139

140140
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
141141
with:

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
id-token: write
2323
steps:
2424
- name: "Install uv"
25-
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
25+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
2626
with:
27-
version: "0.9.28"
27+
version: "0.10.0"
2828
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
2929
with:
3030
pattern: wheels-*

.github/workflows/publish-versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: git clone https://${{ secrets.ASTRAL_VERSIONS_PAT }}@github.com/astral-sh/versions.git astral-versions
3131

3232
- name: "Install uv"
33-
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2.1
33+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
3434

3535
- name: "Update versions"
3636
env:

0 commit comments

Comments
 (0)