mirror of
https://github.com/kristoferssolo/tls-pq-bench.git
synced 2026-03-22 00:36:21 +00:00
ci: add cargo-husky pre-commit hooks
This commit is contained in:
14
.cargo-husky/hooks/pre-commit
Executable file
14
.cargo-husky/hooks/pre-commit
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "Running cargo fmt..."
|
||||
cargo fmt --all -- --check
|
||||
|
||||
echo "Running cargo clippy..."
|
||||
cargo clippy --all-targets --all-features -- -D warnings
|
||||
|
||||
echo "Checking docs..."
|
||||
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features
|
||||
|
||||
echo "Pre-commit checks passed!"
|
||||
Reference in New Issue
Block a user