Add pre-commit hook

This commit is contained in:
Khue Doan 2021-06-14 17:14:57 +07:00
parent 994a9242ae
commit 34b28e8f5d
2 changed files with 7 additions and 0 deletions

View File

@ -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/

4
scripts/hooks/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
make docs
git add docs