... pre-commit: installation


To install precommit, run the following in a virtualenv (and while in a git repo).

pip install pre-commit

You can confirm everything is installed by running;

pre-commit --help

To generate a new settings file locally, you need to run;

pre-commit sample-config > .pre-commit-config.yaml

Don't forget to install the hooks.

pre-commit install

Now you're ready to run the hook.

Feedback? See an issue? Something unclear? Feel free to mention it here.

If you want to be kept up to date, consider signing up for the newsletter.