mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 05:50:31 +08:00
just: Add pre-commit hook
This commit is contained in:
committed by
Fintan Halpenny
parent
9310b1eff2
commit
3082f9976d
@@ -1,6 +1,10 @@
|
||||
default:
|
||||
@just --list
|
||||
|
||||
# Run pre-commit checks
|
||||
pre-commit: format-rust check-rust check-docs check-typos check-spelling check-scripts check-keywords format-nix
|
||||
@echo "✅ pre-commit passed"
|
||||
|
||||
# Format Rust code
|
||||
format-rust: (verify-tool "cargo")
|
||||
@echo "Cargo fmt..."
|
||||
|
||||
Reference in New Issue
Block a user