Skip to content

Commit dec9b73

Browse files
committed
Merge branch 'dcreager/merge-arguments' into dcreager/splat
* dcreager/merge-arguments: (223 commits) fix docs Combine CallArguments and CallArgumentTypes [ty] Sync vendored typeshed stubs (#19334) [`refurb`] Make example error out-of-the-box (`FURB122`) (#19297) [refurb] Make example error out-of-the-box (FURB177) (#19309) [ty] ignore errors when reformatting codemodded typeshed (#19332) [ty] Provide docstrings for stdlib APIs when hovering over them in an IDE (#19311) [ty] Add virtual files to the only project database (#19322) Add t-string fixtures for rules that do not need to be modified (#19146) [ty] Remove `FileLookupError` (#19323) [ty] Fix handling of metaclasses in `object.<CURSOR>` completions [ty] Use an interval map for scopes by expression (#19025) [ty] List all `enum` members (#19283) [ty] Handle configuration errors in LSP more gracefully (#19262) [ty] Use python version and path from Python extension (#19012) [`pep8_naming`] Avoid false positives on standard library functions with uppercase names (`N802`) (#18907) Update Rust crate toml to 0.9.0 (#19320) [ty] Fix server version (#19284) Update NPM Development dependencies (#19319) Update taiki-e/install-action action to v2.56.13 (#19317) ...
2 parents 87f2ff9 + 3a57137 commit dec9b73

File tree

1,168 files changed

+112993
-16736
lines changed

Some content is hidden

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

1,168 files changed

+112993
-16736
lines changed

.github/workflows/build-binaries.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: "Prep README.md"
5050
run: python scripts/transform_readme.py --target pypi
5151
- name: "Build sdist"
52-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
52+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a # v1.49.3
5353
with:
5454
command: sdist
5555
args: --out dist
@@ -79,7 +79,7 @@ jobs:
7979
- name: "Prep README.md"
8080
run: python scripts/transform_readme.py --target pypi
8181
- name: "Build wheels - x86_64"
82-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
82+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a # v1.49.3
8383
with:
8484
target: x86_64
8585
args: --release --locked --out dist
@@ -121,7 +121,7 @@ jobs:
121121
- name: "Prep README.md"
122122
run: python scripts/transform_readme.py --target pypi
123123
- name: "Build wheels - aarch64"
124-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
124+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a # v1.49.3
125125
with:
126126
target: aarch64
127127
args: --release --locked --out dist
@@ -177,7 +177,7 @@ jobs:
177177
- name: "Prep README.md"
178178
run: python scripts/transform_readme.py --target pypi
179179
- name: "Build wheels"
180-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
180+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a # v1.49.3
181181
with:
182182
target: ${{ matrix.platform.target }}
183183
args: --release --locked --out dist
@@ -230,7 +230,7 @@ jobs:
230230
- name: "Prep README.md"
231231
run: python scripts/transform_readme.py --target pypi
232232
- name: "Build wheels"
233-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
233+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a # v1.49.3
234234
with:
235235
target: ${{ matrix.target }}
236236
manylinux: auto
@@ -304,7 +304,7 @@ jobs:
304304
- name: "Prep README.md"
305305
run: python scripts/transform_readme.py --target pypi
306306
- name: "Build wheels"
307-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
307+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a # v1.49.3
308308
with:
309309
target: ${{ matrix.platform.target }}
310310
manylinux: auto
@@ -370,7 +370,7 @@ jobs:
370370
- name: "Prep README.md"
371371
run: python scripts/transform_readme.py --target pypi
372372
- name: "Build wheels"
373-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
373+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a # v1.49.3
374374
with:
375375
target: ${{ matrix.target }}
376376
manylinux: musllinux_1_2
@@ -435,7 +435,7 @@ jobs:
435435
- name: "Prep README.md"
436436
run: python scripts/transform_readme.py --target pypi
437437
- name: "Build wheels"
438-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
438+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a # v1.49.3
439439
with:
440440
target: ${{ matrix.platform.target }}
441441
manylinux: musllinux_1_2

.github/workflows/ci.yaml

Lines changed: 34 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ jobs:
214214
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
215215
with:
216216
persist-credentials: false
217-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
217+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
218218
- name: "Install Rust toolchain"
219219
run: |
220220
rustup component add clippy
@@ -234,17 +234,17 @@ jobs:
234234
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
235235
with:
236236
persist-credentials: false
237-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
237+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
238238
- name: "Install Rust toolchain"
239239
run: rustup show
240240
- name: "Install mold"
241241
uses: rui314/setup-mold@85c79d00377f0d32cdbae595a46de6f7c2fa6599 # v1
242242
- name: "Install cargo nextest"
243-
uses: taiki-e/install-action@d12e869b89167df346dd0ff65da342d1fb1202fb # v2.53.2
243+
uses: taiki-e/install-action@c07504cae06f832dc8de08911c9a9c5cddb0d2d3 # v2.56.13
244244
with:
245245
tool: cargo-nextest
246246
- name: "Install cargo insta"
247-
uses: taiki-e/install-action@d12e869b89167df346dd0ff65da342d1fb1202fb # v2.53.2
247+
uses: taiki-e/install-action@c07504cae06f832dc8de08911c9a9c5cddb0d2d3 # v2.56.13
248248
with:
249249
tool: cargo-insta
250250
- name: ty mdtests (GitHub annotations)
@@ -292,17 +292,17 @@ jobs:
292292
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
293293
with:
294294
persist-credentials: false
295-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
295+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
296296
- name: "Install Rust toolchain"
297297
run: rustup show
298298
- name: "Install mold"
299299
uses: rui314/setup-mold@85c79d00377f0d32cdbae595a46de6f7c2fa6599 # v1
300300
- name: "Install cargo nextest"
301-
uses: taiki-e/install-action@d12e869b89167df346dd0ff65da342d1fb1202fb # v2.53.2
301+
uses: taiki-e/install-action@c07504cae06f832dc8de08911c9a9c5cddb0d2d3 # v2.56.13
302302
with:
303303
tool: cargo-nextest
304304
- name: "Install cargo insta"
305-
uses: taiki-e/install-action@d12e869b89167df346dd0ff65da342d1fb1202fb # v2.53.2
305+
uses: taiki-e/install-action@c07504cae06f832dc8de08911c9a9c5cddb0d2d3 # v2.56.13
306306
with:
307307
tool: cargo-insta
308308
- name: "Run tests"
@@ -321,11 +321,11 @@ jobs:
321321
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
322322
with:
323323
persist-credentials: false
324-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
324+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
325325
- name: "Install Rust toolchain"
326326
run: rustup show
327327
- name: "Install cargo nextest"
328-
uses: taiki-e/install-action@d12e869b89167df346dd0ff65da342d1fb1202fb # v2.53.2
328+
uses: taiki-e/install-action@c07504cae06f832dc8de08911c9a9c5cddb0d2d3 # v2.56.13
329329
with:
330330
tool: cargo-nextest
331331
- name: "Run tests"
@@ -348,7 +348,7 @@ jobs:
348348
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
349349
with:
350350
persist-credentials: false
351-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
351+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
352352
- name: "Install Rust toolchain"
353353
run: rustup target add wasm32-unknown-unknown
354354
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
@@ -377,7 +377,7 @@ jobs:
377377
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
378378
with:
379379
persist-credentials: false
380-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
380+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
381381
- name: "Install Rust toolchain"
382382
run: rustup show
383383
- name: "Install mold"
@@ -400,27 +400,18 @@ jobs:
400400
with:
401401
file: "Cargo.toml"
402402
field: "workspace.package.rust-version"
403-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
403+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
404404
- name: "Install Rust toolchain"
405405
env:
406406
MSRV: ${{ steps.msrv.outputs.value }}
407407
run: rustup default "${MSRV}"
408408
- name: "Install mold"
409409
uses: rui314/setup-mold@85c79d00377f0d32cdbae595a46de6f7c2fa6599 # v1
410-
- name: "Install cargo nextest"
411-
uses: taiki-e/install-action@d12e869b89167df346dd0ff65da342d1fb1202fb # v2.53.2
412-
with:
413-
tool: cargo-nextest
414-
- name: "Install cargo insta"
415-
uses: taiki-e/install-action@d12e869b89167df346dd0ff65da342d1fb1202fb # v2.53.2
416-
with:
417-
tool: cargo-insta
418-
- name: "Run tests"
410+
- name: "Build tests"
419411
shell: bash
420412
env:
421-
NEXTEST_PROFILE: "ci"
422413
MSRV: ${{ steps.msrv.outputs.value }}
423-
run: cargo "+${MSRV}" insta test --all-features --unreferenced reject --test-runner nextest
414+
run: cargo "+${MSRV}" test --no-run --all-features
424415

425416
cargo-fuzz-build:
426417
name: "cargo fuzz build"
@@ -432,7 +423,7 @@ jobs:
432423
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
433424
with:
434425
persist-credentials: false
435-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
426+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
436427
with:
437428
workspaces: "fuzz -> target"
438429
- name: "Install Rust toolchain"
@@ -460,7 +451,7 @@ jobs:
460451
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
461452
with:
462453
persist-credentials: false
463-
- uses: astral-sh/setup-uv@445689ea25e0de0a23313031f5fe577c74ae45a1 # v6.3.0
454+
- uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
464455
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
465456
name: Download Ruff binary to test
466457
id: download-cached-binary
@@ -494,7 +485,7 @@ jobs:
494485
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
495486
with:
496487
persist-credentials: false
497-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
488+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
498489
- name: "Install Rust toolchain"
499490
run: rustup component add rustfmt
500491
# Run all code generation scripts, and verify that the current output is
@@ -661,7 +652,7 @@ jobs:
661652
branch: ${{ github.event.pull_request.base.ref }}
662653
workflow: "ci.yaml"
663654
check_artifacts: true
664-
- uses: astral-sh/setup-uv@445689ea25e0de0a23313031f5fe577c74ae45a1 # v6.3.0
655+
- uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
665656
- name: Fuzz
666657
env:
667658
FORCE_COLOR: 1
@@ -708,11 +699,11 @@ jobs:
708699
with:
709700
python-version: ${{ env.PYTHON_VERSION }}
710701
architecture: x64
711-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
702+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
712703
- name: "Prep README.md"
713704
run: python scripts/transform_readme.py --target pypi
714705
- name: "Build wheels"
715-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
706+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a # v1.49.3
716707
with:
717708
args: --out dist
718709
- name: "Test wheel"
@@ -731,8 +722,8 @@ jobs:
731722
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
732723
with:
733724
persist-credentials: false
734-
- uses: astral-sh/setup-uv@445689ea25e0de0a23313031f5fe577c74ae45a1 # v6.3.0
735-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
725+
- uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
726+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
736727
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
737728
with:
738729
node-version: 22
@@ -765,7 +756,7 @@ jobs:
765756
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
766757
with:
767758
python-version: "3.13"
768-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
759+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
769760
- name: "Add SSH key"
770761
if: ${{ env.MKDOCS_INSIDERS_SSH_KEY_EXISTS == 'true' }}
771762
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
@@ -774,7 +765,7 @@ jobs:
774765
- name: "Install Rust toolchain"
775766
run: rustup show
776767
- name: Install uv
777-
uses: astral-sh/setup-uv@445689ea25e0de0a23313031f5fe577c74ae45a1 # v6.3.0
768+
uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
778769
- name: "Install Insiders dependencies"
779770
if: ${{ env.MKDOCS_INSIDERS_SSH_KEY_EXISTS == 'true' }}
780771
run: uv pip install -r docs/requirements-insiders.txt --system
@@ -804,7 +795,7 @@ jobs:
804795
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
805796
with:
806797
persist-credentials: false
807-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
798+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
808799
- name: "Install Rust toolchain"
809800
run: rustup show
810801
- name: "Run checks"
@@ -874,7 +865,7 @@ jobs:
874865
persist-credentials: false
875866
- name: "Install Rust toolchain"
876867
run: rustup target add wasm32-unknown-unknown
877-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
868+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
878869
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
879870
with:
880871
node-version: 22
@@ -905,22 +896,22 @@ jobs:
905896
with:
906897
persist-credentials: false
907898

908-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
909-
- uses: astral-sh/setup-uv@445689ea25e0de0a23313031f5fe577c74ae45a1 # v6.3.0
899+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
900+
- uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
910901

911902
- name: "Install Rust toolchain"
912903
run: rustup show
913904

914905
- name: "Install codspeed"
915-
uses: taiki-e/install-action@d12e869b89167df346dd0ff65da342d1fb1202fb # v2.53.2
906+
uses: taiki-e/install-action@c07504cae06f832dc8de08911c9a9c5cddb0d2d3 # v2.56.13
916907
with:
917908
tool: cargo-codspeed
918909

919910
- name: "Build benchmarks"
920911
run: cargo codspeed build --features "codspeed,instrumented" --no-default-features -p ruff_benchmark
921912

922913
- name: "Run benchmarks"
923-
uses: CodSpeedHQ/action@0010eb0ca6e89b80c88e8edaaa07cfe5f3e6664d # v3.5.0
914+
uses: CodSpeedHQ/action@c28fe9fbe7d57a3da1b7834ae3761c1d8217612d # v3.7.0
924915
with:
925916
run: cargo codspeed run
926917
token: ${{ secrets.CODSPEED_TOKEN }}
@@ -938,22 +929,22 @@ jobs:
938929
with:
939930
persist-credentials: false
940931

941-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
942-
- uses: astral-sh/setup-uv@445689ea25e0de0a23313031f5fe577c74ae45a1 # v6.3.0
932+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
933+
- uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
943934

944935
- name: "Install Rust toolchain"
945936
run: rustup show
946937

947938
- name: "Install codspeed"
948-
uses: taiki-e/install-action@d12e869b89167df346dd0ff65da342d1fb1202fb # v2.53.2
939+
uses: taiki-e/install-action@c07504cae06f832dc8de08911c9a9c5cddb0d2d3 # v2.56.13
949940
with:
950941
tool: cargo-codspeed
951942

952943
- name: "Build benchmarks"
953944
run: cargo codspeed build --features "codspeed,walltime" --no-default-features -p ruff_benchmark
954945

955946
- name: "Run benchmarks"
956-
uses: CodSpeedHQ/action@0010eb0ca6e89b80c88e8edaaa07cfe5f3e6664d # v3.5.0
947+
uses: CodSpeedHQ/action@c28fe9fbe7d57a3da1b7834ae3761c1d8217612d # v3.7.0
957948
with:
958949
run: cargo codspeed run
959950
token: ${{ secrets.CODSPEED_TOKEN }}

.github/workflows/daily_fuzz.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3535
with:
3636
persist-credentials: false
37-
- uses: astral-sh/setup-uv@445689ea25e0de0a23313031f5fe577c74ae45a1 # v6.3.0
37+
- uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
3838
- name: "Install Rust toolchain"
3939
run: rustup show
4040
- name: "Install mold"
4141
uses: rui314/setup-mold@85c79d00377f0d32cdbae595a46de6f7c2fa6599 # v1
42-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
42+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
4343
- name: Build ruff
4444
# A debug build means the script runs slower once it gets started,
4545
# but this is outweighed by the fact that a release build takes *much* longer to compile in CI

0 commit comments

Comments
 (0)