-
Notifications
You must be signed in to change notification settings - Fork 2
Pre commit tutorial
Zoltan Tuza edited this page Oct 11, 2020
·
1 revision
This repo uses pre-commit to check your commit before it gets into the git database. You can check the current configuration Here:
Tutorial: https://ljvmiranda921.github.io/notebook/2018/06/21/precommits-using-black-and-flake8/
First, install the precommit package
pip install pre-commit
(if missing, create a precommit config: .pre-commit-config.yaml)
$ pre-commit install
pre-commit installed at .git/hooks/pre-commit
You can run your pre-commit script without invoking a git commit:
pre-commit run --all-files