Skip to content

Commit

Permalink
chore: added git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAegis committed May 4, 2024
1 parent cbb9362 commit d925c24
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/enable_git_hooks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

git config core.hooksPath scripts/hooks
4 changes: 4 additions & 0 deletions scripts/hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

cargo fmt --all -- --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
3 changes: 3 additions & 0 deletions scripts/hooks/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

cargo test --workspace --all-features

0 comments on commit d925c24

Please sign in to comment.