Skip to content

Commit fdaa4c9

Browse files
committed
Merge branch 'main' into dcreager/legacy-typevar-instance
* main: (37 commits) [red-knot] Revert blanket `clippy::too_many_arguments` allow (#17688) Add config option to disable `typing_extensions` imports (#17611) ruff_db: render file paths in diagnostics as relative paths if possible Bump mypy_primer pin (#17685) red_knot_python_semantic: improve `not-iterable` diagnostic [red-knot] Allow all callables to be assignable to @Todo-signatures (#17680) [`refurb`] Mark fix as safe for `readlines-in-for` (`FURB129`) (#17644) Collect preview lint behaviors in separate module (#17646) Upgrade Salsa to a more recent commit (#17678) [red-knot] TypedDict: No errors for introspection dunder attributes (#17677) [`flake8-pyi`] Ensure `Literal[None,] | Literal[None,]` is not autofixed to `None | None` (`PYI061`) (#17659) [red-knot] No errors for definitions of `TypedDict`s (#17674) Update actions/download-artifact digest to d3f86a1 (#17664) [red-knot] Use 101 exit code when there's at least one diagnostic with severity 'fatal' (#17640) [`pycodestyle`] Fix duplicated diagnostic in `E712` (#17651) [airflow] fix typos `AIR312` (#17673) [red-knot] Don't ignore hidden files by default (#17655) Update pre-commit hook astral-sh/ruff-pre-commit to v0.11.7 (#17670) Update docker/build-push-action digest to 14487ce (#17665) Update taiki-e/install-action digest to ab3728c (#17666) ...
2 parents a507a35 + f0868ac commit fdaa4c9

File tree

206 files changed

+2947
-1588
lines changed

Some content is hidden

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

206 files changed

+2947
-1588
lines changed

.github/workflows/build-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
# Adapted from https://docs.docker.com/build/ci/github-actions/multi-platform/
8080
- name: Build and push by digest
8181
id: build
82-
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6
82+
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6
8383
with:
8484
context: .
8585
platforms: ${{ matrix.platform }}
@@ -231,7 +231,7 @@ jobs:
231231
${{ env.TAG_PATTERNS }}
232232
233233
- name: Build and push
234-
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6
234+
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6
235235
with:
236236
context: .
237237
platforms: linux/amd64,linux/arm64

.github/workflows/ci.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ jobs:
239239
- name: "Install mold"
240240
uses: rui314/setup-mold@e16410e7f8d9e167b74ad5697a9089a35126eb50 # v1
241241
- name: "Install cargo nextest"
242-
uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2
242+
uses: taiki-e/install-action@ab3728c7ba6948b9b429627f4d55a68842b27f18 # v2
243243
with:
244244
tool: cargo-nextest
245245
- name: "Install cargo insta"
246-
uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2
246+
uses: taiki-e/install-action@ab3728c7ba6948b9b429627f4d55a68842b27f18 # v2
247247
with:
248248
tool: cargo-insta
249249
- name: Red-knot mdtests (GitHub annotations)
@@ -293,11 +293,11 @@ jobs:
293293
- name: "Install mold"
294294
uses: rui314/setup-mold@e16410e7f8d9e167b74ad5697a9089a35126eb50 # v1
295295
- name: "Install cargo nextest"
296-
uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2
296+
uses: taiki-e/install-action@ab3728c7ba6948b9b429627f4d55a68842b27f18 # v2
297297
with:
298298
tool: cargo-nextest
299299
- name: "Install cargo insta"
300-
uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2
300+
uses: taiki-e/install-action@ab3728c7ba6948b9b429627f4d55a68842b27f18 # v2
301301
with:
302302
tool: cargo-insta
303303
- name: "Run tests"
@@ -320,7 +320,7 @@ jobs:
320320
- name: "Install Rust toolchain"
321321
run: rustup show
322322
- name: "Install cargo nextest"
323-
uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2
323+
uses: taiki-e/install-action@ab3728c7ba6948b9b429627f4d55a68842b27f18 # v2
324324
with:
325325
tool: cargo-nextest
326326
- name: "Run tests"
@@ -403,11 +403,11 @@ jobs:
403403
- name: "Install mold"
404404
uses: rui314/setup-mold@e16410e7f8d9e167b74ad5697a9089a35126eb50 # v1
405405
- name: "Install cargo nextest"
406-
uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2
406+
uses: taiki-e/install-action@ab3728c7ba6948b9b429627f4d55a68842b27f18 # v2
407407
with:
408408
tool: cargo-nextest
409409
- name: "Install cargo insta"
410-
uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2
410+
uses: taiki-e/install-action@ab3728c7ba6948b9b429627f4d55a68842b27f18 # v2
411411
with:
412412
tool: cargo-insta
413413
- name: "Run tests"
@@ -857,7 +857,7 @@ jobs:
857857
run: rustup show
858858

859859
- name: "Install codspeed"
860-
uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2
860+
uses: taiki-e/install-action@ab3728c7ba6948b9b429627f4d55a68842b27f18 # v2
861861
with:
862862
tool: cargo-codspeed
863863

.github/workflows/mypy_primer.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,10 @@ jobs:
4141
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
4242
with:
4343
workspaces: "ruff"
44+
4445
- name: Install Rust toolchain
4546
run: rustup show
4647

47-
- name: Install mypy_primer
48-
run: |
49-
uv tool install "git+https://github.com/hauntsaninja/mypy_primer@4c22d192a456e27badf85b3ea0f830707375d2b7"
50-
5148
- name: Run mypy_primer
5249
shell: bash
5350
run: |
@@ -67,7 +64,9 @@ jobs:
6764
6865
echo "Project selector: $PRIMER_SELECTOR"
6966
# Allow the exit code to be 0 or 1, only fail for actual mypy_primer crashes/bugs
70-
uvx mypy_primer \
67+
uvx \
68+
--from="git+https://github.com/hauntsaninja/mypy_primer@b83b9eade0b7ed2f4b9b129b163acac1ecb48f71" \
69+
mypy_primer \
7170
--repo ruff \
7271
--type-checker knot \
7372
--old base_commit \

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ jobs:
129129
persist-credentials: false
130130
submodules: recursive
131131
- name: Install cached dist
132-
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e
132+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
133133
with:
134134
name: cargo-dist-cache
135135
path: ~/.cargo/bin/
136136
- run: chmod +x ~/.cargo/bin/dist
137137
# Get all the local artifacts for the global tasks to use (for e.g. checksums)
138138
- name: Fetch local artifacts
139-
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e
139+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
140140
with:
141141
pattern: artifacts-*
142142
path: target/distrib/
@@ -180,14 +180,14 @@ jobs:
180180
persist-credentials: false
181181
submodules: recursive
182182
- name: Install cached dist
183-
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e
183+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
184184
with:
185185
name: cargo-dist-cache
186186
path: ~/.cargo/bin/
187187
- run: chmod +x ~/.cargo/bin/dist
188188
# Fetch artifacts from scratch-storage
189189
- name: Fetch artifacts
190-
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e
190+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
191191
with:
192192
pattern: artifacts-*
193193
path: target/distrib/
@@ -257,7 +257,7 @@ jobs:
257257
submodules: recursive
258258
# Create a GitHub Release while uploading all files to it
259259
- name: "Download GitHub Artifacts"
260-
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e
260+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
261261
with:
262262
pattern: artifacts-*
263263
path: artifacts

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ repos:
7979
pass_filenames: false # This makes it a lot faster
8080

8181
- repo: https://github.com/astral-sh/ruff-pre-commit
82-
rev: v0.11.6
82+
rev: v0.11.7
8383
hooks:
8484
- id: ruff-format
8585
- id: ruff

0 commit comments

Comments
 (0)