1
0
Fork 0
mirror of https://github.com/Blah-IM/blahrs.git synced 2025-05-18 00:11:07 +00:00
blahrs/contrib/pre-commit

9 lines
174 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
cargo fmt -- --check
fd -e nix | xargs nixfmt --check
if ! out="$(cargo machete 2>/dev/null)"; then
echo "$out"
exit 1
fi
typos