Home / Pre-Commit hooks / Chapter 2

Chapter 2: Installation

Dec 14, 2024
2 of 7

To mimic the CI pipeline in from the github repo locally, we can install the amazing tool call pre-commit. Do this on your system python with

pip install pre-commit

Next, we have to install the pre-commit hook into our git repo with

pre-commit install

Lastly, create an empty .pre-commig-config.yaml file in the root of the repository.