Skip to content

Commit

Permalink
add pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
abhemanyus committed Sep 21, 2024
1 parent 3db96b9 commit 081f912
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

set -e

export CARGO_TERM_COLOR=always

echo '+cargo fmt'
cargo fmt --all
echo '+cargo test'
cargo test
echo '+cargo clippy -- -D warnings'
cargo clippy -- -D warnings

0 comments on commit 081f912

Please # to comment.