Skip to content

Commit

Permalink
Add githooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcampbell24 committed Oct 21, 2024
1 parent 69b050a commit 40772e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
cargo +stable clippy # -- --warn clippy::pedantic
cargo +stable fmt --all --check
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.PHONY: enable-git-hooks

enable-git-hooks:
git config --local core.hooksPath .githooks/

0 comments on commit 40772e6

Please sign in to comment.