Skip to content

Commit 5b8c6e1

Browse files
committed
Merge branch 'main' into dcreager/bound-typevar
* main: (31 commits) Add AIR301 rule (#17707) Avoid underflow in default ranges before a BOM (#19839) Update actions/download-artifact digest to de96f46 (#19852) Update docker/login-action action to v3.5.0 (#19860) Update rui314/setup-mold digest to 7344740 (#19853) Update cargo-bins/cargo-binstall action to v1.14.4 (#19855) Update actions/cache action to v4.2.4 (#19854) Update Rust crate hashbrown to v0.15.5 (#19858) Update Rust crate camino to v1.1.11 (#19857) Update Rust crate proc-macro2 to v1.0.96 (#19859) Update dependency ruff to v0.12.8 (#19856) SIM905: Fix handling of U+001C..U+001F whitespace (#19849) RUF064: offer a safe fix for multi-digit zeros (#19847) Clean up unused rendering code in `ruff_linter` (#19832) [ty] Add Salsa caching to `TupleType::to_class_type` (#19840) [ty] Handle cycles when finding implicit attributes (#19833) [ty] fix goto-definition on imports (#19834) [ty] Implement stdlib stub mapping (#19529) [`flake8-comprehensions`] Fix false positive for `C420` with attribute, subscript, or slice assignment targets (#19513) [ty] Implement module-level `__getattr__` support (#19791) ...
2 parents 6650090 + 6bc52f2 commit 5b8c6e1

File tree

1,746 files changed

+47812
-34810
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,746 files changed

+47812
-34810
lines changed

.github/workflows/build-docker.yml

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

4141
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
4242

43-
- uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
43+
- uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
4444
with:
4545
registry: ghcr.io
4646
username: ${{ github.repository_owner }}
@@ -131,7 +131,7 @@ jobs:
131131
type=pep440,pattern={{ version }},value=${{ fromJson(inputs.plan).announcement_tag }}
132132
type=pep440,pattern={{ major }}.{{ minor }},value=${{ fromJson(inputs.plan).announcement_tag }}
133133
134-
- uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
134+
- uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
135135
with:
136136
registry: ghcr.io
137137
username: ${{ github.repository_owner }}
@@ -169,7 +169,7 @@ jobs:
169169
steps:
170170
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
171171

172-
- uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
172+
- uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
173173
with:
174174
registry: ghcr.io
175175
username: ${{ github.repository_owner }}
@@ -276,7 +276,7 @@ jobs:
276276
type=pep440,pattern={{ version }},value=${{ fromJson(inputs.plan).announcement_tag }}
277277
type=pep440,pattern={{ major }}.{{ minor }},value=${{ fromJson(inputs.plan).announcement_tag }}
278278
279-
- uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
279+
- uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
280280
with:
281281
registry: ghcr.io
282282
username: ${{ github.repository_owner }}

.github/workflows/ci.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ jobs:
238238
- name: "Install Rust toolchain"
239239
run: rustup show
240240
- name: "Install mold"
241-
uses: rui314/setup-mold@702b1908b5edf30d71a8d1666b724e0f0c6fa035 # v1
241+
uses: rui314/setup-mold@7344740a9418dcdcb481c7df83d9fbd1d5072d7d # v1
242242
- name: "Install cargo nextest"
243243
uses: taiki-e/install-action@6064345e6658255e90e9500fdf9a06ab77e6909c # v2.57.6
244244
with:
@@ -296,7 +296,7 @@ jobs:
296296
- name: "Install Rust toolchain"
297297
run: rustup show
298298
- name: "Install mold"
299-
uses: rui314/setup-mold@702b1908b5edf30d71a8d1666b724e0f0c6fa035 # v1
299+
uses: rui314/setup-mold@7344740a9418dcdcb481c7df83d9fbd1d5072d7d # v1
300300
- name: "Install cargo nextest"
301301
uses: taiki-e/install-action@6064345e6658255e90e9500fdf9a06ab77e6909c # v2.57.6
302302
with:
@@ -381,7 +381,7 @@ jobs:
381381
- name: "Install Rust toolchain"
382382
run: rustup show
383383
- name: "Install mold"
384-
uses: rui314/setup-mold@702b1908b5edf30d71a8d1666b724e0f0c6fa035 # v1
384+
uses: rui314/setup-mold@7344740a9418dcdcb481c7df83d9fbd1d5072d7d # v1
385385
- name: "Build"
386386
run: cargo build --release --locked
387387

@@ -406,7 +406,7 @@ jobs:
406406
MSRV: ${{ steps.msrv.outputs.value }}
407407
run: rustup default "${MSRV}"
408408
- name: "Install mold"
409-
uses: rui314/setup-mold@702b1908b5edf30d71a8d1666b724e0f0c6fa035 # v1
409+
uses: rui314/setup-mold@7344740a9418dcdcb481c7df83d9fbd1d5072d7d # v1
410410
- name: "Build tests"
411411
shell: bash
412412
env:
@@ -429,7 +429,7 @@ jobs:
429429
- name: "Install Rust toolchain"
430430
run: rustup show
431431
- name: "Install cargo-binstall"
432-
uses: cargo-bins/cargo-binstall@dd6a0ac24caa1243d18df0f770b941e990e8facc # v1.14.3
432+
uses: cargo-bins/cargo-binstall@79e4beb1e02f733a26129a6bf26c37dab4ab3307 # v1.14.4
433433
with:
434434
435435
- name: "Install cargo-fuzz"
@@ -682,7 +682,7 @@ jobs:
682682
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
683683
with:
684684
persist-credentials: false
685-
- uses: cargo-bins/cargo-binstall@dd6a0ac24caa1243d18df0f770b941e990e8facc # v1.14.3
685+
- uses: cargo-bins/cargo-binstall@79e4beb1e02f733a26129a6bf26c37dab4ab3307 # v1.14.4
686686
- run: cargo binstall --no-confirm cargo-shear
687687
- run: cargo shear
688688

@@ -728,7 +728,7 @@ jobs:
728728
with:
729729
node-version: 22
730730
- name: "Cache pre-commit"
731-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
731+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
732732
with:
733733
path: ~/.cache/pre-commit
734734
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}

.github/workflows/daily_fuzz.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: "Install Rust toolchain"
3939
run: rustup show
4040
- name: "Install mold"
41-
uses: rui314/setup-mold@702b1908b5edf30d71a8d1666b724e0f0c6fa035 # v1
41+
uses: rui314/setup-mold@7344740a9418dcdcb481c7df83d9fbd1d5072d7d # v1
4242
- 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,

.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@d3f86a106a0bac45b974a628896c90dbdf5c8093
132+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
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@d3f86a106a0bac45b974a628896c90dbdf5c8093
139+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
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@d3f86a106a0bac45b974a628896c90dbdf5c8093
183+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
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@d3f86a106a0bac45b974a628896c90dbdf5c8093
190+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
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@d3f86a106a0bac45b974a628896c90dbdf5c8093
260+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
261261
with:
262262
pattern: artifacts-*
263263
path: artifacts

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
# Changelog
22

3+
## 0.12.8
4+
5+
### Preview features
6+
7+
- \[`flake8-use-pathlib`\] Expand `PTH201` to check all `PurePath` subclasses ([#19440](https://github.com/astral-sh/ruff/pull/19440))
8+
9+
### Bug fixes
10+
11+
- \[`flake8-blind-except`\] Change `BLE001` to correctly parse exception tuples ([#19747](https://github.com/astral-sh/ruff/pull/19747))
12+
- \[`flake8-errmsg`\] Exclude `typing.cast` from `EM101` ([#19656](https://github.com/astral-sh/ruff/pull/19656))
13+
- \[`flake8-simplify`\] Fix raw string handling in `SIM905` for embedded quotes ([#19591](https://github.com/astral-sh/ruff/pull/19591))
14+
- \[`flake8-import-conventions`\] Avoid false positives for NFKC-normalized `__debug__` import aliases in `ICN001` ([#19411](https://github.com/astral-sh/ruff/pull/19411))
15+
- \[`isort`\] Fix syntax error after docstring ending with backslash (`I002`) ([#19505](https://github.com/astral-sh/ruff/pull/19505))
16+
- \[`pylint`\] Mark `PLC0207` fixes as unsafe when `*args` unpacking is present ([#19679](https://github.com/astral-sh/ruff/pull/19679))
17+
- \[`pyupgrade`\] Prevent infinite loop with `I002` (`UP010`, `UP035`) ([#19413](https://github.com/astral-sh/ruff/pull/19413))
18+
- \[`ruff`\] Parenthesize generator expressions in f-strings (`RUF010`) ([#19434](https://github.com/astral-sh/ruff/pull/19434))
19+
20+
### Rule changes
21+
22+
- \[`eradicate`\] Don't flag `pyrefly` pragmas as unused code (`ERA001`) ([#19731](https://github.com/astral-sh/ruff/pull/19731))
23+
24+
### Documentation
25+
26+
- Replace "associative" with "commutative" in docs for `RUF036` ([#19706](https://github.com/astral-sh/ruff/pull/19706))
27+
- Fix copy and line separator colors in dark mode ([#19630](https://github.com/astral-sh/ruff/pull/19630))
28+
- Fix link to `typing` documentation ([#19648](https://github.com/astral-sh/ruff/pull/19648))
29+
- \[`refurb`\] Make more examples error out-of-the-box ([#19695](https://github.com/astral-sh/ruff/pull/19695),[#19673](https://github.com/astral-sh/ruff/pull/19673),[#19672](https://github.com/astral-sh/ruff/pull/19672))
30+
31+
### Other changes
32+
33+
- Include column numbers in GitLab output format ([#19708](https://github.com/astral-sh/ruff/pull/19708))
34+
- Always expand tabs to four spaces in diagnostics ([#19618](https://github.com/astral-sh/ruff/pull/19618))
35+
- Update pre-commit's `ruff` id ([#19654](https://github.com/astral-sh/ruff/pull/19654))
36+
337
## 0.12.7
438

539
This is a follow-up release to 0.12.6. Because of an issue in the package metadata, 0.12.6 failed to publish fully to PyPI and has been yanked. Similarly, there is no GitHub release or Git tag for 0.12.6. The contents of the 0.12.7 release are identical to 0.12.6, except for the updated metadata.

Cargo.lock

Lines changed: 19 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ regex-automata = { version = "0.4.9" }
143143
rustc-hash = { version = "2.0.0" }
144144
rustc-stable-hash = { version = "0.1.2" }
145145
# When updating salsa, make sure to also update the revision in `fuzz/Cargo.toml`
146-
salsa = { git = "https://github.com/salsa-rs/salsa.git", rev = "b121ee46c4483ba74c19e933a3522bd548eb7343", default-features = false, features = [
146+
salsa = { git = "https://github.com/salsa-rs/salsa.git", rev = "940f9c09a7d0a0903bc7edc4a3f1977382980f0b", default-features = false, features = [
147147
"compact_str",
148148
"macros",
149149
"salsa_unstable",

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ curl -LsSf https://astral.sh/ruff/install.sh | sh
148148
powershell -c "irm https://astral.sh/ruff/install.ps1 | iex"
149149

150150
# For a specific version.
151-
curl -LsSf https://astral.sh/ruff/0.12.7/install.sh | sh
152-
powershell -c "irm https://astral.sh/ruff/0.12.7/install.ps1 | iex"
151+
curl -LsSf https://astral.sh/ruff/0.12.8/install.sh | sh
152+
powershell -c "irm https://astral.sh/ruff/0.12.8/install.ps1 | iex"
153153
```
154154

155155
You can also install Ruff via [Homebrew](https://formulae.brew.sh/formula/ruff), [Conda](https://anaconda.org/conda-forge/ruff),
@@ -182,7 +182,7 @@ Ruff can also be used as a [pre-commit](https://pre-commit.com/) hook via [`ruff
182182
```yaml
183183
- repo: https://github.com/astral-sh/ruff-pre-commit
184184
# Ruff version.
185-
rev: v0.12.7
185+
rev: v0.12.8
186186
hooks:
187187
# Run the linter.
188188
- id: ruff-check

crates/ruff/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ruff"
3-
version = "0.12.7"
3+
version = "0.12.8"
44
publish = true
55
authors = { workspace = true }
66
edition = { workspace = true }

0 commit comments

Comments
 (0)