Add misc/scripts

Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
This commit is contained in:
Yuki Kishimoto
2024-04-09 20:01:05 +02:00
parent d19486325f
commit 02fd33225c
6 changed files with 109 additions and 0 deletions

10
misc/scripts/precommit.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
set -exuo pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
"${DIR}/check-fmt.sh" # Format the code
"${DIR}/check-crates.sh" # Check all crates
#"${DIR}/check-bindings.sh" # Check all bindings
"${DIR}/check-docs.sh" # Check Rust docs