-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
35 lines (33 loc) 路 1.48 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
35 lines (33 loc) 路 1.48 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
repos:
- repo: local
hooks:
# The in-tree skills still use the Python harness. Guidance no longer
# does: `AGENTS.evals.json` is on the Shuhari schema, which this harness
# rejects, so these two hooks are scoped to `skills/` only.
- id: shuhari-validate-instructions
name: validate the user guidance eval schema
entry: scripts/shuhari_guidance_gate.sh validate
language: system
pass_filenames: false
files: ^home/dot_config/exact_agents/(AGENTS\.md|AGENTS\.evals\.json)$
# Live model calls, two arms per case.
- id: shuhari-eval-instructions
name: evaluate changed user guidance
entry: scripts/shuhari_guidance_gate.sh eval
language: system
pass_filenames: false
require_serial: true
files: ^home/dot_config/exact_agents/(AGENTS\.md|AGENTS\.evals\.json)$
- id: textlint-markdown
name: fix hard-wrapped Markdown prose
entry: textlint --fix --config home/dot_config/textlint/config.json
language: node
additional_dependencies:
- textlint@15.8.0
- '@cffnpwr/textlint-rule-no-arbitrary-line-break@1.1.0'
- textlint-rule-ja-space-between-half-and-full-width@3.0.3
types: [markdown]
# Test fixtures are frozen inputs whose exact bytes are the contract the
# tests assert against. Auto-fixing them rewrites the very prose a
# fixture exists to hold still.
exclude: ^tests/fixtures/