-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
192 lines (188 loc) · 6.77 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
192 lines (188 loc) · 6.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# Security + structural gates for this public, cross-machine-synced repo.
# Enable once with: pre-commit install
# Run on demand with: pre-commit run --all-files
# Pattern adapted from daymade/claude-code-skills (MIT); see CREDITS.md.
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.4
hooks:
- id: gitleaks # block secrets/tokens from being committed
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: detect-private-key
- id: check-merge-conflict
- id: check-json
- id: check-added-large-files
- repo: local
hooks:
- id: validate-skills
name: validate skills, Codex wrappers & manifests
entry: python scripts/validate-skills.py
language: python
additional_dependencies: [pyyaml==6.0.2]
pass_filenames: false
always_run: true
- id: check-links
name: check markdown links
entry: python scripts/check-links.py
language: python
pass_filenames: false
always_run: true
- id: check-md056-table-columns
name: check markdown table column counts (MD056)
entry: python scripts/check-md056-table-columns.py
language: python
pass_filenames: false
always_run: true
- id: test-check-md056-table-columns
name: check-md056-table-columns tests
entry: python scripts/test_check_md056_table_columns.py
language: python
pass_filenames: false
always_run: true
- id: check-ascii-punctuation
name: check ASCII punctuation in source (.py, .R)
entry: python scripts/check-ascii-punctuation.py
language: python
pass_filenames: false
always_run: true
- id: test-check-ascii-punctuation
name: check-ascii-punctuation tests
entry: python scripts/test_check_ascii_punctuation.py
language: python
pass_filenames: false
always_run: true
- id: check-jules-review-workflow
name: check Jules mention-dispatch wrap
entry: python scripts/check-jules-review-workflow.py
language: python
pass_filenames: false
always_run: true
- id: test-jules-review-workflow
name: Jules-review workflow tests
entry: python scripts/test_check_jules_review_workflow.py
language: python
pass_filenames: false
always_run: true
- id: check-github-actions-step-if
name: check github-actions step-if memory
entry: python scripts/check-github-actions-step-if.py
language: python
pass_filenames: false
always_run: true
- id: test-github-actions-step-if
name: github-actions step-if memory tests
entry: python scripts/test_check_github_actions_step_if.py
language: python
pass_filenames: false
always_run: true
- id: markdownlint
name: markdownlint (markdown style)
entry: markdownlint-cli2
language: node
additional_dependencies: ["markdownlint-cli2@0.22.1"]
pass_filenames: false # globs/ignores come from .markdownlint-cli2.jsonc
always_run: true
- id: semantic-line-break-tool-tests
name: semantic-line-break tool tests
entry: python scripts/test_slb.py
language: python
pass_filenames: false
always_run: true
- id: enforcement-hook-tests
name: enforcement-hook tests (hooks/test-*.py)
entry: python scripts/test_hooks.py
language: python
pass_filenames: false
always_run: true
- id: hook-runner-tests
name: hook-runner tests (scripts/test_hooks.py)
entry: python scripts/test_test_hooks.py
language: python
pass_filenames: false
always_run: true
- id: gen-hooks-plugin-check
name: hooks-only skills-dir plugin in sync with hooks/hooks.json
entry: python scripts/gen-hooks-plugin.py --check
language: python
pass_filenames: false
always_run: true
- id: gen-hooks-plugin-tests
name: gen-hooks-plugin tests
entry: python scripts/test_gen_hooks_plugin.py
language: python
pass_filenames: false
always_run: true
- id: run-hook-tests
name: run-hook.sh tests
entry: python scripts/test_run_hook.py
language: python
pass_filenames: false
always_run: true
- id: hook-catalog
name: hook catalog (README table vs hooks/hooks.json)
entry: python scripts/check-hook-catalog.py
language: python
pass_filenames: false
always_run: true
- id: hook-catalog-tests
name: hook-catalog check tests
entry: python scripts/test_check_hook_catalog.py
language: python
pass_filenames: false
always_run: true
- id: hook-output-shape
name: hook output shape (warn-only hooks emit systemMessage)
entry: python scripts/check-hook-output-shape.py
language: python
pass_filenames: false
always_run: true
- id: hook-output-shape-tests
name: hook-output-shape check tests
entry: python scripts/test_check_hook_output_shape.py
language: python
pass_filenames: false
always_run: true
- id: hook-file-resolution
name: hook file resolution (realpath, not lexical abspath)
entry: python scripts/check-hook-file-resolution.py
language: python
pass_filenames: false
always_run: true
- id: hook-file-resolution-tests
name: hook-file-resolution check tests
entry: python scripts/test_check_hook_file_resolution.py
language: python
pass_filenames: false
always_run: true
- id: check-pr-body-figures-tests
name: check-pr-body-figures check tests
entry: python scripts/test_check_pr_body_figures.py
language: python
pass_filenames: false
always_run: true
- id: doctor-tests
name: doctor diagnostics tests
entry: python scripts/test_doctor.py
language: python
pass_filenames: false
always_run: true
- id: fences-tests
name: markdown fences library tests
entry: python scripts/test_fences.py
language: python
pass_filenames: false
always_run: true
- id: check-test-suites-covered
name: check all scripts test suites are gated in CI
entry: python scripts/check-test-suites-covered.py
language: python
pass_filenames: false
always_run: true
- id: test-check-test-suites-covered
name: test-suite coverage check tests
entry: python scripts/test_check_test_suites_covered.py
language: python
pass_filenames: false
always_run: true