diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2022-05-16 21:26:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 21:26:20 -0400 |
commit | 1190135d3750600375d8e256e77caaccda205c6b (patch) | |
tree | 11ddda783aa4f6963837da97922285f39645fbdf | |
parent | de765fc3644a229c6f86de81536488a1b159012f (diff) |
other: add fmt to husky hook (#731)
Just adds a cargo fmt check to the husky pre-push check.
-rwxr-xr-x | .cargo-husky/hooks/pre-push | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.cargo-husky/hooks/pre-push b/.cargo-husky/hooks/pre-push index 183d3365..9cd6aa97 100755 --- a/.cargo-husky/hooks/pre-push +++ b/.cargo-husky/hooks/pre-push @@ -4,6 +4,9 @@ set -e echo "Running pre-push hook:" +echo "Checking fmt" +cargo fmt --all -- --check + echo "Executing: cargo clippy --all-targets --workspace -- -D warnings" cargo clippy --all-targets --workspace -- -D warnings |