ci,contrib: add typos and pre-commit script

This commit is contained in:
oxalica 2024-10-13 04:30:53 -04:00
parent ba9673065a
commit 1c9108610d
4 changed files with 9 additions and 1 deletions

5
contrib/pre-commit Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
typos
cargo fmt -- --check
fd -e nix | xargs nixfmt --check