From c45063bc69b8e79d3219fd705c19d10854a815db Mon Sep 17 00:00:00 2001 From: Gerg-L Date: Sun, 10 Dec 2023 17:05:02 -0500 Subject: [PATCH] remove pre-commit hook --- .githooks/pre-commit | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100755 .githooks/pre-commit diff --git a/.githooks/pre-commit b/.githooks/pre-commit deleted file mode 100755 index b8babfa..0000000 --- a/.githooks/pre-commit +++ /dev/null @@ -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