Skip to content

Commit 6284357

Browse files
committed
Merge branch 'main' into dcreager/legacy-typevar-instance
* main: (222 commits) [playground] New default program (#17277) [red-knot] Add `--python-platform` CLI option (#17284) [red-knot] Allow ellipsis default params in stub functions (#17243) [red-knot] Fix stale syntax errors in playground (#17280) Update Rust crate clap to v4.5.35 (#17273) Fix RUF100 to detect unused file-level noqa directives with specific codes (#17042) (#17061) [ci] Fix pattern for code changes (#17275) [`airflow`] Update oudated `AIR301`, `AIR302` rules (#17123) [docs] fix formatting of "See Style Guide" link (#17272) [red-knot] Support stub packages (#17204) ruff_annotate_snippets: address unused code warnings [red-knot] Add a couple more tests for `*` imports (#17270) [red-knot] Add 'Format document' to playground (#17217) Update actions/setup-node action to v4.3.0 (#17259) Update actions/upload-artifact action to v4.6.2 (#17261) Update actions/download-artifact action to v4.2.1 (#17258) Update actions/setup-python action to v5.5.0 (#17260) Update actions/cache action to v4.2.3 (#17256) Update Swatinem/rust-cache action to v2.7.8 (#17255) Update actions/checkout action to v4.2.2 (#17257) ...
2 parents f8d0350 + 761749c commit 6284357

File tree

589 files changed

+35716
-16033
lines changed

Some content is hidden

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

589 files changed

+35716
-16033
lines changed

.github/workflows/build-binaries.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ permissions: {}
2828
env:
2929
PACKAGE_NAME: ruff
3030
MODULE_NAME: ruff
31-
PYTHON_VERSION: "3.11"
31+
PYTHON_VERSION: "3.13"
3232
CARGO_INCREMENTAL: 0
3333
CARGO_NET_RETRY: 10
3434
CARGO_TERM_COLOR: always
@@ -39,17 +39,17 @@ jobs:
3939
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
4040
runs-on: ubuntu-latest
4141
steps:
42-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
42+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4343
with:
4444
submodules: recursive
4545
persist-credentials: false
46-
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
46+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
4747
with:
4848
python-version: ${{ env.PYTHON_VERSION }}
4949
- name: "Prep README.md"
5050
run: python scripts/transform_readme.py --target pypi
5151
- name: "Build sdist"
52-
uses: PyO3/maturin-action@36db84001d74475ad1b8e6613557ae4ee2dc3598 # v1
52+
uses: PyO3/maturin-action@44479ae1b6b1a57f561e03add8832e62c185eb17 # v1.48.1
5353
with:
5454
command: sdist
5555
args: --out dist
@@ -59,7 +59,7 @@ jobs:
5959
"${MODULE_NAME}" --help
6060
python -m "${MODULE_NAME}" --help
6161
- name: "Upload sdist"
62-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
62+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6363
with:
6464
name: wheels-sdist
6565
path: dist
@@ -68,23 +68,23 @@ jobs:
6868
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
6969
runs-on: macos-14
7070
steps:
71-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
71+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7272
with:
7373
submodules: recursive
7474
persist-credentials: false
75-
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
75+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
7676
with:
7777
python-version: ${{ env.PYTHON_VERSION }}
7878
architecture: x64
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@36db84001d74475ad1b8e6613557ae4ee2dc3598 # v1
82+
uses: PyO3/maturin-action@44479ae1b6b1a57f561e03add8832e62c185eb17 # v1.48.1
8383
with:
8484
target: x86_64
8585
args: --release --locked --out dist
8686
- name: "Upload wheels"
87-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
87+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
8888
with:
8989
name: wheels-macos-x86_64
9090
path: dist
@@ -99,7 +99,7 @@ jobs:
9999
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
100100
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
101101
- name: "Upload binary"
102-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
102+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
103103
with:
104104
name: artifacts-macos-x86_64
105105
path: |
@@ -110,18 +110,18 @@ jobs:
110110
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
111111
runs-on: macos-14
112112
steps:
113-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
113+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
114114
with:
115115
submodules: recursive
116116
persist-credentials: false
117-
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
117+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
118118
with:
119119
python-version: ${{ env.PYTHON_VERSION }}
120120
architecture: arm64
121121
- name: "Prep README.md"
122122
run: python scripts/transform_readme.py --target pypi
123123
- name: "Build wheels - aarch64"
124-
uses: PyO3/maturin-action@36db84001d74475ad1b8e6613557ae4ee2dc3598 # v1
124+
uses: PyO3/maturin-action@44479ae1b6b1a57f561e03add8832e62c185eb17 # v1.48.1
125125
with:
126126
target: aarch64
127127
args: --release --locked --out dist
@@ -131,7 +131,7 @@ jobs:
131131
ruff --help
132132
python -m ruff --help
133133
- name: "Upload wheels"
134-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
134+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
135135
with:
136136
name: wheels-aarch64-apple-darwin
137137
path: dist
@@ -146,7 +146,7 @@ jobs:
146146
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
147147
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
148148
- name: "Upload binary"
149-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
149+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
150150
with:
151151
name: artifacts-aarch64-apple-darwin
152152
path: |
@@ -166,18 +166,18 @@ jobs:
166166
- target: aarch64-pc-windows-msvc
167167
arch: x64
168168
steps:
169-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
169+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
170170
with:
171171
submodules: recursive
172172
persist-credentials: false
173-
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
173+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
174174
with:
175175
python-version: ${{ env.PYTHON_VERSION }}
176176
architecture: ${{ matrix.platform.arch }}
177177
- name: "Prep README.md"
178178
run: python scripts/transform_readme.py --target pypi
179179
- name: "Build wheels"
180-
uses: PyO3/maturin-action@36db84001d74475ad1b8e6613557ae4ee2dc3598 # v1
180+
uses: PyO3/maturin-action@44479ae1b6b1a57f561e03add8832e62c185eb17 # v1.48.1
181181
with:
182182
target: ${{ matrix.platform.target }}
183183
args: --release --locked --out dist
@@ -192,7 +192,7 @@ jobs:
192192
"${MODULE_NAME}" --help
193193
python -m "${MODULE_NAME}" --help
194194
- name: "Upload wheels"
195-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
195+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
196196
with:
197197
name: wheels-${{ matrix.platform.target }}
198198
path: dist
@@ -203,7 +203,7 @@ jobs:
203203
7z a $ARCHIVE_FILE ./target/${{ matrix.platform.target }}/release/ruff.exe
204204
sha256sum $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
205205
- name: "Upload binary"
206-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
206+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
207207
with:
208208
name: artifacts-${{ matrix.platform.target }}
209209
path: |
@@ -219,18 +219,18 @@ jobs:
219219
- x86_64-unknown-linux-gnu
220220
- i686-unknown-linux-gnu
221221
steps:
222-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
222+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
223223
with:
224224
submodules: recursive
225225
persist-credentials: false
226-
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
226+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
227227
with:
228228
python-version: ${{ env.PYTHON_VERSION }}
229229
architecture: x64
230230
- name: "Prep README.md"
231231
run: python scripts/transform_readme.py --target pypi
232232
- name: "Build wheels"
233-
uses: PyO3/maturin-action@36db84001d74475ad1b8e6613557ae4ee2dc3598 # v1
233+
uses: PyO3/maturin-action@44479ae1b6b1a57f561e03add8832e62c185eb17 # v1.48.1
234234
with:
235235
target: ${{ matrix.target }}
236236
manylinux: auto
@@ -242,7 +242,7 @@ jobs:
242242
"${MODULE_NAME}" --help
243243
python -m "${MODULE_NAME}" --help
244244
- name: "Upload wheels"
245-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
245+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
246246
with:
247247
name: wheels-${{ matrix.target }}
248248
path: dist
@@ -260,7 +260,7 @@ jobs:
260260
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
261261
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
262262
- name: "Upload binary"
263-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
263+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
264264
with:
265265
name: artifacts-${{ matrix.target }}
266266
path: |
@@ -294,17 +294,17 @@ jobs:
294294
arch: arm
295295

296296
steps:
297-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
297+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
298298
with:
299299
submodules: recursive
300300
persist-credentials: false
301-
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
301+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
302302
with:
303303
python-version: ${{ env.PYTHON_VERSION }}
304304
- name: "Prep README.md"
305305
run: python scripts/transform_readme.py --target pypi
306306
- name: "Build wheels"
307-
uses: PyO3/maturin-action@36db84001d74475ad1b8e6613557ae4ee2dc3598 # v1
307+
uses: PyO3/maturin-action@44479ae1b6b1a57f561e03add8832e62c185eb17 # v1.48.1
308308
with:
309309
target: ${{ matrix.platform.target }}
310310
manylinux: auto
@@ -325,7 +325,7 @@ jobs:
325325
pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall
326326
ruff --help
327327
- name: "Upload wheels"
328-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
328+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
329329
with:
330330
name: wheels-${{ matrix.platform.target }}
331331
path: dist
@@ -343,7 +343,7 @@ jobs:
343343
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
344344
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
345345
- name: "Upload binary"
346-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
346+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
347347
with:
348348
name: artifacts-${{ matrix.platform.target }}
349349
path: |
@@ -359,18 +359,18 @@ jobs:
359359
- x86_64-unknown-linux-musl
360360
- i686-unknown-linux-musl
361361
steps:
362-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
362+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
363363
with:
364364
submodules: recursive
365365
persist-credentials: false
366-
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
366+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
367367
with:
368368
python-version: ${{ env.PYTHON_VERSION }}
369369
architecture: x64
370370
- name: "Prep README.md"
371371
run: python scripts/transform_readme.py --target pypi
372372
- name: "Build wheels"
373-
uses: PyO3/maturin-action@36db84001d74475ad1b8e6613557ae4ee2dc3598 # v1
373+
uses: PyO3/maturin-action@44479ae1b6b1a57f561e03add8832e62c185eb17 # v1.48.1
374374
with:
375375
target: ${{ matrix.target }}
376376
manylinux: musllinux_1_2
@@ -387,7 +387,7 @@ jobs:
387387
.venv/bin/pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall
388388
.venv/bin/${{ env.MODULE_NAME }} --help
389389
- name: "Upload wheels"
390-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
390+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
391391
with:
392392
name: wheels-${{ matrix.target }}
393393
path: dist
@@ -405,7 +405,7 @@ jobs:
405405
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
406406
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
407407
- name: "Upload binary"
408-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
408+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
409409
with:
410410
name: artifacts-${{ matrix.target }}
411411
path: |
@@ -425,17 +425,17 @@ jobs:
425425
arch: armv7
426426

427427
steps:
428-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
428+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
429429
with:
430430
submodules: recursive
431431
persist-credentials: false
432-
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
432+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
433433
with:
434434
python-version: ${{ env.PYTHON_VERSION }}
435435
- name: "Prep README.md"
436436
run: python scripts/transform_readme.py --target pypi
437437
- name: "Build wheels"
438-
uses: PyO3/maturin-action@36db84001d74475ad1b8e6613557ae4ee2dc3598 # v1
438+
uses: PyO3/maturin-action@44479ae1b6b1a57f561e03add8832e62c185eb17 # v1.48.1
439439
with:
440440
target: ${{ matrix.platform.target }}
441441
manylinux: musllinux_1_2
@@ -454,7 +454,7 @@ jobs:
454454
.venv/bin/pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall
455455
.venv/bin/${{ env.MODULE_NAME }} --help
456456
- name: "Upload wheels"
457-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
457+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
458458
with:
459459
name: wheels-${{ matrix.platform.target }}
460460
path: dist
@@ -472,7 +472,7 @@ jobs:
472472
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
473473
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
474474
- name: "Upload binary"
475-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
475+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
476476
with:
477477
name: artifacts-${{ matrix.platform.target }}
478478
path: |

.github/workflows/build-docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- linux/amd64
3434
- linux/arm64
3535
steps:
36-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
36+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3737
with:
3838
submodules: recursive
3939
persist-credentials: false
@@ -96,7 +96,7 @@ jobs:
9696
touch "/tmp/digests/${digest#sha256:}"
9797
9898
- name: Upload digests
99-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
99+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
100100
with:
101101
name: digests-${{ env.PLATFORM_TUPLE }}
102102
path: /tmp/digests/*
@@ -113,7 +113,7 @@ jobs:
113113
if: ${{ inputs.plan != '' && !fromJson(inputs.plan).announcement_tag_is_implicit }}
114114
steps:
115115
- name: Download digests
116-
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4
116+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
117117
with:
118118
path: /tmp/digests
119119
pattern: digests-*
@@ -256,7 +256,7 @@ jobs:
256256
if: ${{ inputs.plan != '' && !fromJson(inputs.plan).announcement_tag_is_implicit }}
257257
steps:
258258
- name: Download digests
259-
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4
259+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
260260
with:
261261
path: /tmp/digests
262262
pattern: digests-*

0 commit comments

Comments
 (0)