arti/maint/hooks/pre-commit

14 lines
261 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
echo '+cargo fmt --all -- --check'
cargo fmt --all -- --check
echo '+cargo clippy --all-features --all-targets -- -D warnings'
cargo clippy --all-features --all-targets -- -D warnings
echo '+cargo test --all'
cargo test --all