flake8 hook has been removed from https://github.com/pre-commit/pre-commit-hooks so now use the one from https://gitlab.com/pycqa/flake8
- blackify all the python files, - enable black in pre-commit, - add a black tox environment.