Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 973 Bytes

pre-commit-hooks.md

File metadata and controls

32 lines (22 loc) · 973 Bytes

pre-commit hooks

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-msg

You can also run specific hooks on all files:

pre-commit run detect-private-key --all-files

or run all hooks on all files:

pre-commit run --all-files

for more options check pre-commit documentation

NOTE: to run the hooks you should have installed the following tools: