Skip to content

Commit 339af2b

Browse files
authored
Infra: Add zizmor, actionlint and check-jsonschema to pre-commit/CI (#5030)
1 parent d18a9f5 commit 339af2b

2 files changed

Lines changed: 26 additions & 5 deletions

File tree

.github/workflows/render.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
python -m pip install --upgrade pip
4444
4545
- name: Render PEPs
46-
run: make dirhtml search JOBS=$(nproc)
46+
run: make dirhtml search JOBS="$(nproc)"
4747

4848
# remove the .doctrees folder when building for deployment as it takes two thirds of disk space
4949
- name: Clean up files

.pre-commit-config.yaml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ repos:
4848
name: "Check YAML"
4949

5050
- repo: https://github.com/psf/black-pre-commit-mirror
51-
rev: 25.12.0
51+
rev: 26.5.1
5252
hooks:
5353
- id: black
5454
name: "Format with Black"
@@ -58,7 +58,7 @@ repos:
5858
files: '^(peps/conf\.py|pep_sphinx_extensions/tests/.*)$'
5959

6060
- repo: https://github.com/astral-sh/ruff-pre-commit
61-
rev: v0.14.10
61+
rev: v0.15.21
6262
hooks:
6363
- id: ruff-check
6464
name: "Lint with Ruff"
@@ -71,8 +71,24 @@ repos:
7171
- '--check'
7272
files: '^release_management/'
7373

74+
- repo: https://github.com/python-jsonschema/check-jsonschema
75+
rev: 0.37.4
76+
hooks:
77+
- id: check-dependabot
78+
- id: check-github-workflows
79+
80+
- repo: https://github.com/rhysd/actionlint
81+
rev: v1.7.12
82+
hooks:
83+
- id: actionlint
84+
85+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
86+
rev: v1.26.1
87+
hooks:
88+
- id: zizmor
89+
7490
- repo: https://github.com/tox-dev/tox-ini-fmt
75-
rev: 1.7.1
91+
rev: 1.7.2
7692
hooks:
7793
- id: tox-ini-fmt
7894
name: "Format tox.ini"
@@ -99,7 +115,7 @@ repos:
99115

100116
# Manual codespell check
101117
- repo: https://github.com/codespell-project/codespell
102-
rev: v2.4.1
118+
rev: v2.4.2
103119
hooks:
104120
- id: codespell
105121
name: "Check for common misspellings in text files"
@@ -125,3 +141,8 @@ repos:
125141
files: "^release_management/"
126142
pass_filenames: false
127143
require_serial: true
144+
145+
- repo: meta
146+
hooks:
147+
- id: check-hooks-apply
148+
- id: check-useless-excludes

0 commit comments

Comments
 (0)