-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlefthook.yml
More file actions
27 lines (25 loc) · 826 Bytes
/
lefthook.yml
File metadata and controls
27 lines (25 loc) · 826 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
pre-commit:
parallel: true
commands:
lint:
glob: "*.{ts,tsx,js,jsx}"
run: npx biome check --write {staged_files}
stage_fixed: true
typecheck:
run: npx tsc --noEmit
auth-header-provenance:
# Enforces the plan 009/1 invariant that PM provider auth headers
# are assembled only through src/integrations/pm/_shared/auth-headers.ts.
# Biome can't natively express the required string-pattern rule;
# the grep-style check lives in this test file and runs here at
# pre-commit for fast feedback (~250ms).
run: npx vitest run --project unit-core tests/unit/integrations/auth-header-provenance.test.ts
pre-push:
parallel: true
commands:
test:
run: npm run test:fast
commit-msg:
commands:
commitlint:
run: npx commitlint --edit {1}