1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/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