1
0
Fork 0
mirror of https://github.com/Blah-IM/blahrs.git synced 2025-05-23 02:21:10 +00:00
blahrs/contrib/pre-commit
2024-10-18 10:27:30 -04:00

10 lines
212 B
Bash
Executable file

#!/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
echo "$out"
exit 1
fi
typos