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

This commit is contained in:
Wolfgang Walther
2021-12-06 10:40:23 +01:00
committed by Wolfgang Walther
parent 74f6e5225c
commit 595c2a5257
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'
'';