Thanks to visit codestin.com
Credit goes to github.com

Skip to content

4ops/pre-commit-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pre-commit hooks

Pre-commit hooks based on pre-commit

Installation

With pip

$ pip install pre-commit

With curl

$ curl https://pre-commit.com/install-local.py | python -

More installation options

See pre-commit official docs

Usage

Create pre-commit config file

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

Install hooks

$ pre-commit install

Manual run

$ pre-commit run -a

About

Pre-commit hooks

Resources

License

Stars

Watchers

Forks

Packages

No packages published