nix(feat): Add postgrest-git-hooks to enable pre-commit and pre-push hooks

This commit is contained in:
Wolfgang Walther
2022-06-03 22:19:16 -05:00
committed by Steve Chavez
parent 7940e73a12
commit 3c8e309a32
2 changed files with 149 additions and 6 deletions
+2
View File
@@ -44,6 +44,8 @@ let
''
${style}
trap "echo postgrest-style-check failed. Run postgrest-style to fix issues automatically." ERR
${git}/bin/git diff-index --exit-code HEAD -- '*.hs' '*.lhs' '*.nix'
'';