-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
54 lines (54 loc) · 1.7 KB
/
lefthook.yml
File metadata and controls
54 lines (54 loc) · 1.7 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
pre-commit:
parallel: true
commands:
env-guard:
run: ./scripts/check_env_staged.sh
dockerignore-guard:
run: ./scripts/check_dockerignore_guards.sh
claude-symlinks:
run: ./scripts/check_claude_symlinks.sh
pg-advisory-lock-ban:
glob: "**/*.rs"
run: ./scripts/check_pg_advisory_lock.sh
mcp-http-only:
glob: "**/*.rs"
run: ./scripts/check_mcp_http_only.sh
no-mod-rs:
glob: "**/*.rs"
run: ./scripts/check_no_mod_rs.sh
no-next-middleware:
glob: "apps/web/**"
run: ./scripts/check_no_next_middleware.sh
biome:
glob: "apps/web/**/*.{ts,tsx,js,jsx,css}"
run: ./scripts/check_biome_staged.sh
unwrap-warn:
glob: "**/*.rs"
run: ./scripts/warn_new_unwraps.sh
skills-ref:
glob: "skills/**"
run: ./scripts/validate_skills_ref.sh
mcp-schema-doc:
glob: "crates/mcp/schema.rs"
run: python3 scripts/generate_mcp_schema_doc.py && git add docs/MCP-TOOL-SCHEMA.md
monolith:
run: >
if [ -f "scripts/enforce_monoliths.py" ]; then
python3 "scripts/enforce_monoliths.py" --staged;
elif [ -f "$HOME/.claude/hooks/enforce_monoliths.py" ]; then
python3 "$HOME/.claude/hooks/enforce_monoliths.py" --staged;
else
echo "ERROR enforce_monoliths.py not found in scripts/ or ~/.claude/hooks/" >&2; exit 1;
fi
rustfmt:
glob: "**/*.rs"
run: cargo fmt -- --check
clippy:
glob: "**/*.{rs,toml}"
run: cargo clippy --all-targets --locked -- -D warnings
check:
glob: "**/*.{rs,toml}"
run: cargo check --all-targets --locked
test:
glob: "**/*.{rs,toml}"
run: cargo test --all --locked