Apply black formatting to Python code and add pre-commit hook
- reformat the whole swh-web Python codebase using black tool
- add pre-commit hook to run black on all changed files
- update flake8 configuration to match black code style
- remove a lot of useless '# noqa' comments after new formatting
- add black processing in tox