GIT hooks are implemented using pre-commit
.
To install pre-commit
follow this guide.
After installing pre-commit
and cloning this repo you can enable the hooks locally by running:
pre-commit install
pre-commit install --hook-type commit-msg
You can also run specific hooks on all files:
pre-commit run detect-private-key --all-files
or run all hooks on all files:
pre-commit run --all-files
for more options check pre-commit
documentation
NOTE: to run the hooks you should have installed the following tools:
terraform
terragrunt
tflint
andterraform-docs
installed locally.