Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 

README.md

Table of Contents

pre-commit hooks

Collection of pre-commit hooks to be used with Yelp's pre-commit framework

Available Hooks

  • Terraform format
  • Terraform validate
  • Prometheus rules validation
  • Prometheus configuration validation

Check the hooks manifest to know more

How-To

Step 1

Install the pre-commit package

brew install pre-commit

For operating systems, other than macOS, check the official documentation

Step 2

Step into the repo you want to have the pre-commit hooks installed and run:

cat <<EOF > .pre-commit-config.yaml
- repo: git://github.com/kintoandar/pre-commit.git
  sha: v2.1.0
  hooks:
  - id: terraform_fmt
  - id: terraform_validate
  - id: prometheus_check_rules
  - id: prometheus_check_config
EOF

Step 3

Install the pre-commit hook

pre-commit install

Credits

Made with ♥️ by kintoandar

About

pre-commit hook terraform; pre-commit hook prometheus

Topics

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.