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-msgYou can also run specific hooks on all files:
pre-commit run detect-private-key --all-filesor run all hooks on all files:
pre-commit run --all-filesfor more options check pre-commit documentation
NOTE: to run the hooks you should have installed the following tools:
terraformterragrunttflintandterraform-docsinstalled locally.