Skip to content

Commit c5852c2

Browse files
authored
[3.13] Update pre-commit with zizmor and Ruff fixes (GH-143095) (GH-143102) (#143113)
1 parent 7dc6acc commit c5852c2

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,17 @@ updates:
1212
update-types:
1313
- "version-update:semver-minor"
1414
- "version-update:semver-patch"
15+
cooldown:
16+
# https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns
17+
# Cooldowns protect against supply chain attacks by avoiding the
18+
# highest-risk window immediately after new releases.
19+
default-days: 14
1520
- package-ecosystem: "pip"
1621
directory: "/Tools/"
1722
schedule:
1823
interval: "monthly"
1924
labels:
2025
- "skip issue"
2126
- "skip news"
27+
cooldown:
28+
default-days: 14

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.13.2
3+
rev: v0.14.10
44
hooks:
55
- id: ruff-check
66
name: Run Ruff (lint) on Doc/
@@ -36,7 +36,7 @@ repos:
3636
files: ^Tools/wasm/
3737

3838
- repo: https://github.com/psf/black-pre-commit-mirror
39-
rev: 25.9.0
39+
rev: 25.12.0
4040
hooks:
4141
- id: black
4242
name: Run Black on Tools/jit/
@@ -68,24 +68,24 @@ repos:
6868
files: '^\.github/CODEOWNERS|\.(gram)$'
6969

7070
- repo: https://github.com/python-jsonschema/check-jsonschema
71-
rev: 0.34.0
71+
rev: 0.36.0
7272
hooks:
7373
- id: check-dependabot
7474
- id: check-github-workflows
7575
- id: check-readthedocs
7676

7777
- repo: https://github.com/rhysd/actionlint
78-
rev: v1.7.7
78+
rev: v1.7.9
7979
hooks:
8080
- id: actionlint
8181

8282
- repo: https://github.com/woodruffw/zizmor-pre-commit
83-
rev: v1.14.1
83+
rev: v1.19.0
8484
hooks:
8585
- id: zizmor
8686

8787
- repo: https://github.com/sphinx-contrib/sphinx-lint
88-
rev: v1.0.0
88+
rev: v1.0.2
8989
hooks:
9090
- id: sphinx-lint
9191
args: [--enable=default-role]

Doc/tools/check-warnings.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,11 @@ def main(argv: list[str] | None = None) -> int:
311311
if not Path("Doc").exists() or not Path("Doc").is_dir():
312312
raise RuntimeError(wrong_directory_msg)
313313

314-
with Path("Doc/sphinx-warnings.txt").open(encoding="UTF-8") as f:
315-
warnings = f.read().splitlines()
314+
warnings = (
315+
Path("Doc/sphinx-warnings.txt")
316+
.read_text(encoding="UTF-8")
317+
.splitlines()
318+
)
316319

317320
cwd = str(Path.cwd()) + os.path.sep
318321
files_with_nits = {

0 commit comments

Comments
 (0)