Add pre-commit hooks
- black (for code formatting)
- flake8 (for style guide enforcement)
If you accept this MR, you should install pre-commit locally on your machine and then run pre-commit install
at the root of your repository. That will install a pre-commit hook on your machine.
You should then run pre-commit run -a
and fix all the errors.