After cloning the repository, configure git to use the project's commit hooks:
git config core.hooksPath .githooksThis enables:
- pre-commit: Runs
cargo fmt(auto-fixes) andcargo clippy -- -D warningson staged.rsfiles - pre-push: Runs
cargo fmt --check,cargo clippy -- -D warnings, andcargo test
All clippy warnings are treated as errors. Commits with warnings will be rejected.
To bypass hooks in exceptional cases (CI tooling, etc.):
SKIP_GIT_HOOKS=1 git commit ...cargo build
cargo test
cargo clippy --all-targets --all-features -- -D warningsUse Conventional Commits:
feat: add bitstring pattern matching
fix: resolve REPL continuation for do/end blocks
refactor: split parser into modules
feature/descriptive-name
fix/issue-description
Never commit directly to main.