# Run all pre-commit checks (local tests only — no API calls)
precommit: fmt-check clippy test
# Check formatting
fmt-check:
cargo fmt -- --check
# Lint
clippy:
cargo clippy -- -D warnings
# Run local tests (excludes eval and profiling suites that require OPENAI_API_KEY)
test:
cargo test --lib
# Run eval suite (requires OPENAI_API_KEY)
eval:
cargo test --test eval -- --nocapture
# Run profiling tests (requires OPENAI_API_KEY for agent round-trip)
profile:
cargo test --test profiling -- --nocapture
# Auto-fix formatting
fmt:
cargo fmt