To start using git hooks you need to install pre-commit
package:
python3 -m venv .venv
. .venv/bin/activate
pip3 install pre-commit
and then install the hooks in your git repo:
pre-commit install
From now on, before each commit your code will be formatted and quality-checked.