mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
remove pre-commit hook
This commit is contained in:
parent
f7619fcf0a
commit
c45063bc69
1 changed files with 0 additions and 16 deletions
|
|
@ -1,16 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
STAGED="$(git diff --name-only --cached --diff-filter=d | grep "**.nix" | tr '\n' ' ')"
|
|
||||||
|
|
||||||
if [ -z "$STAGED" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
for i in $STAGED; do
|
|
||||||
statix fix -- "$i"
|
|
||||||
done
|
|
||||||
|
|
||||||
deadnix -qe $STAGED
|
|
||||||
nixfmt -q $STAGED
|
|
||||||
|
|
||||||
git add $STAGED
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue