Pre-commit hooks based on pre-commit
$ pip install pre-commit$ curl https://pre-commit.com/install-local.py | python -
See pre-commit official docs
Example content of .pre-commit-config.yaml
repos:
- repo: git://github.com/4ops/pre-commit-hooks
rev: v1.1.1
hooks:
- id: terraform-fmt
- id: packer-fmt$ pre-commit install$ pre-commit run -a