just: Add pre-commit hook

This commit is contained in:
Adrian Duke 2026-04-08 17:28:00 +01:00 committed by Fintan Halpenny
parent 9310b1eff2
commit 3082f9976d
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,10 @@
default: default:
@just --list @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 code
format-rust: (verify-tool "cargo") format-rust: (verify-tool "cargo")
@echo "Cargo fmt..." @echo "Cargo fmt..."