contrib: check pre-commit in repo root

This commit is contained in:
oxalica 2024-10-18 10:27:30 -04:00
parent d7ac77a1d9
commit d5cc097e7a

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(git rev-parse --show-toplevel)"
cargo fmt -- --check
fd -e nix | xargs nixfmt --check
if ! out="$(cargo machete 2>/dev/null)"; then