-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devops: Also lint tests in pre-commit hook
See: TritonVM/tasm-lib@b8e2091 and https://github.com/rhysd/cargo-husky?tab=readme-ov-file#user-hooks
- Loading branch information
1 parent
340fb9c
commit 4088889
Showing
2 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
# | ||
# This hook was defined by sword-smith <thor@neptune.cash> | ||
# It's intended to be copied to `.git/hooks/` by `cargo-husky`. | ||
|
||
set -e | ||
|
||
echo '+cargo clippy --all-targets -- -D warnings' | ||
cargo clippy --all-targets -- -D warnings | ||
echo '+cargo fmt --all -- --check' | ||
cargo fmt --all -- --check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters