Skip to content

Commit a4f976c

Browse files
authored
Merge pull request #8638 from hugovk/pre-commit-zizmor
Add zizmor to pre-commit and fix potential cache-poisoning in wheels workflow
2 parents 171531c + 8d28514 commit a4f976c

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,6 @@ jobs:
263263
uses: actions/setup-python@v5
264264
with:
265265
python-version: "3.x"
266-
cache: pip
267-
cache-dependency-path: "Makefile"
268266

269267
- run: make sdist
270268

.pre-commit-config.yaml

Lines changed: 7 additions & 2 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.8.1
3+
rev: v0.8.4
44
hooks:
55
- id: ruff
66
args: [--exit-non-zero-on-fix]
@@ -24,7 +24,7 @@ repos:
2424
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$)
2525

2626
- repo: https://github.com/pre-commit/mirrors-clang-format
27-
rev: v19.1.4
27+
rev: v19.1.5
2828
hooks:
2929
- id: clang-format
3030
types: [c]
@@ -56,6 +56,11 @@ repos:
5656
- id: check-readthedocs
5757
- id: check-renovate
5858

59+
- repo: https://github.com/woodruffw/zizmor-pre-commit
60+
rev: v0.10.0
61+
hooks:
62+
- id: zizmor
63+
5964
- repo: https://github.com/sphinx-contrib/sphinx-lint
6065
rev: v1.0.0
6166
hooks:

0 commit comments

Comments
 (0)