Add pre-push script for format and clippy
This commit is contained in:
parent
ea144a1024
commit
447221ca16
2 changed files with 15 additions and 0 deletions
5
tools/prepush
Executable file
5
tools/prepush
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
echo "[prepush] Running cargo fmt --check"
|
||||
cargo fmt -- --check
|
||||
echo "[prepush] Running cargo clippy"
|
||||
cargo clippy -- -Dwarnings
|
||||
Loading…
Add table
Add a link
Reference in a new issue