bottom/.cargo-husky/hooks/pre-push
Clement Tsang 1190135d37
other: add fmt to husky hook (#731)
Just adds a cargo fmt check to the husky pre-push check.
2022-05-16 21:26:20 -04:00

14 lines
269 B
Bash
Executable file

#!/bin/sh
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
# echo "Executing: cargo test"
# cargo test