This directory contains git hooks that enforce code quality and commit standards.
Enforces Conventional Commits format for all commit messages.
Allowed commit types:
feat:A new featurefix:A bug fixrefactor:Code refactoring without feature or bug fixdocs:Documentation changestest:Adding or updating testschore:Maintenance tasks (dependencies, build, etc.)perf:Performance improvementsstyle:Code style changes (formatting, etc.)ci:CI/CD configuration changesbuild:Build system changesrevert:Reverting a previous commit
Examples:
feat: add user authentication
fix(auth): handle expired tokens
docs: update API documentation
chore(deps): bump clap to 4.5
refactor: simplify metadata handling
Runs code quality checks before committing:
- Clippy - Rust linter to catch common mistakes
- Tests - Runs all library tests
This ensures only high-quality code is committed.
The hooks are already configured for this repository. When you clone it, git will automatically use these hooks.
If the hooks aren't working, run:
git config core.hooksPath .githooksIf you need to bypass hooks in an emergency:
# Skip pre-commit hook
git commit --no-verify
# For commit-msg hook, there's no simple bypass - the message must be validNote: Bypassing hooks is discouraged and should only be done in exceptional circumstances.