Skip to content

akoova/pre-commit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

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: v0.0.2
  hooks:
  - id: terraform_fmt
  - id: terraform_validate
EOF

Step 3

Install the pre-commit hook

pre-commit install

Credits

Made with ♥️ by kintoandar

About

Collection of pre-commit hooks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%