-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
29 lines (28 loc) · 795 Bytes
/
lefthook.yml
File metadata and controls
29 lines (28 loc) · 795 Bytes
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
pre-commit:
parallel: true
commands:
biome-check:
glob: "*.{ts,tsx}"
run: bun run check --staged
stage_fixed: true
typecheck:
run: bun typecheck
docs-sync:
glob: "{specs/openapi.json,scripts/tag-descriptions.ts,scripts/sync-docs.ts,docs/llms-full.txt}"
run: bun run docs:sync && git add README.md AGENTS.md
stage_fixed: true
pre-push:
parallel: false
commands:
typecheck:
run: bun typecheck
priority: 1
biome-full:
run: bun run check
priority: 2
docs-drift:
run: bun run docs:sync && git diff --exit-code -- README.md AGENTS.md || { echo "✗ README.md/AGENTS.md drifted from spec — commit the sync output"; exit 1; }
priority: 3
test:
run: bun run test
priority: 4