1
0
Fork 0
mirror of https://github.com/Blah-IM/blahrs.git synced 2025-07-24 22:32:40 +00:00

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