diff --git a/Makefile b/Makefile index 7ebe78e2..cbb9a53e 100644 --- a/Makefile +++ b/Makefile @@ -29,3 +29,6 @@ lint: # TODO (feature) Add lint checks for everything make -C metal lint make -C infra lint + +hooks: + cp ./scripts/hooks/* .git/hooks/ diff --git a/scripts/hooks/pre-commit b/scripts/hooks/pre-commit new file mode 100755 index 00000000..3cb49fd8 --- /dev/null +++ b/scripts/hooks/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh + +make docs +git add docs