Skip to content

chore: add lefthook pre-commit and pre-push hooks#344

Merged
fagemx merged 1 commit intomainfrom
chore/GH-309-lefthook-pre-commit
Mar 20, 2026
Merged

chore: add lefthook pre-commit and pre-push hooks#344
fagemx merged 1 commit intomainfrom
chore/GH-309-lefthook-pre-commit

Conversation

@fagemx
Copy link
Owner

@fagemx fagemx commented Mar 20, 2026

Summary

  • Add lefthook.yml with cargo fmt --check on pre-commit and cargo clippy --workspace -- -D warnings on pre-push
  • Document lefthook setup in CONTRIBUTING.md under a new "Git Hooks (optional)" section
  • Local dev only, no CI impact

Closes #309

Test plan

  • Install lefthook: npm install -g @evilmartians/lefthook && lefthook install
  • Verify pre-commit runs fmt check: lefthook run pre-commit
  • Verify pre-push runs clippy: lefthook run pre-push
  • Verify CI passes (lefthook is not involved in CI)

Generated with Claude Code

@fagemx fagemx merged commit 966a212 into main Mar 20, 2026
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: add lefthook pre-commit hooks for Rust

1 participant