We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 801101f commit 9867620Copy full SHA for 9867620
.githooks/pre-commit
@@ -0,0 +1,15 @@
1
+#!/bin/sh
2
+
3
+if which fourmolu > /dev/null ; then
4
+ find app test src -name '*.hs' -exec fourmolu --mode check {} +
5
+else
6
+ echo "Fourmolu not found, aborting."
7
+ exit 1
8
+fi
9
10
+if which hlint > /dev/null ; then
11
+ hlint app test src
12
13
+ echo "HLint not found, aborting."
14
15
Makefile
@@ -1,3 +1,6 @@
+init: ## Set up git hooks properly - needs calling once when cloning the repo
+ @git config core.hooksPath .githooks
start: ## Start flora-server
@cabal run exe:flora-server
0 commit comments