mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-05-01 00:31:09 +00:00
contrib: check pre-commit in repo root
This commit is contained in:
parent
d7ac77a1d9
commit
d5cc097e7a
1 changed files with 1 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
cd "$(git rev-parse --show-toplevel)"
|
||||||
cargo fmt -- --check
|
cargo fmt -- --check
|
||||||
fd -e nix | xargs nixfmt --check
|
fd -e nix | xargs nixfmt --check
|
||||||
if ! out="$(cargo machete 2>/dev/null)"; then
|
if ! out="$(cargo machete 2>/dev/null)"; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue