polarity/scripts/git-hooks/pre-commit
2022-08-23 20:48:20 +02:00

7 lines
209 B
Text
Executable file

# Pre-commit hook
# Place into `.git/hooks` or use `git config core.hooksPath scripts/git-hooks`
# from the root of the repository
cargo test
cargo clippy --tests --benches -- -Dwarnings
cargo fmt -- --check