I'm a big fan of pre-commit hooks, as they can help avoid stupid mistakes like forgetting to run black auto formatting or isort for sorting imports and so on.
As an example of some to start with would be those similar used by PyMC3.
Happy to make a PR for this if it sounds like a good idea.