A pre-commit Demo
pre-commit Website pre-commit Github
poetry install # with poetry
pip install -r requirements.txt # with pipThen run to setup the pre-commit
poetry run pre-commit install
ou
pre-commit installpre-commit will be launch on every commit. You can launch them manually with the following command:
pre-commit run # only on staged file
pre-commit run --all-file # on all file