Skip to content

Commit f352ae8

Browse files
committed
Add more pre-commit hooks
1 parent 01190aa commit f352ae8

File tree

2 files changed

+35
-6
lines changed

2 files changed

+35
-6
lines changed

.github/zizmor.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Configuration for the zizmor static analysis tool, run via prek in CI
2+
# https://docs.zizmor.sh/configuration/
3+
rules:
4+
unpinned-uses:
5+
config:
6+
policies:
7+
"*": ref-pin

.pre-commit-config.yaml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,31 @@ repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v6.0.0
44
hooks:
5-
- id: trailing-whitespace
6-
args: [--markdown-linebreak-ext=md]
7-
- id: end-of-file-fixer
8-
- id: check-yaml
9-
- id: check-json
10-
- id: check-merge-conflict
115
- id: check-added-large-files
126
args: [--maxkb=500]
7+
- id: check-case-conflict
8+
- id: check-merge-conflict
9+
- id: check-json
10+
- id: check-yaml
11+
- id: end-of-file-fixer
12+
- id: trailing-whitespace
13+
args: [--markdown-linebreak-ext=md]
14+
15+
- repo: https://github.com/python-jsonschema/check-jsonschema
16+
rev: 0.37.0
17+
hooks:
18+
- id: check-dependabot
19+
- id: check-github-workflows
20+
21+
- repo: https://github.com/rhysd/actionlint
22+
rev: v1.7.11
23+
hooks:
24+
- id: actionlint
25+
26+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
27+
rev: v1.23.1
28+
hooks:
29+
- id: zizmor
1330

1431
- repo: https://github.com/crate-ci/typos
1532
rev: v1.44.0
@@ -29,3 +46,8 @@ repos:
2946
language: system
3047
pass_filenames: false
3148
files: ^src/.*\.(ts|tsx|astro)$
49+
50+
- repo: meta
51+
hooks:
52+
- id: check-hooks-apply
53+
- id: check-useless-excludes

0 commit comments

Comments
 (0)