just: Add pre-commit hook
This commit is contained in:
parent
9310b1eff2
commit
3082f9976d
4
justfile
4
justfile
|
|
@ -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..."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue