Apply black formatting to Python code and add pre-commit hook
I heard it was time to move to black
formatting in all swh components ;-)
That huge diff contains the following:
-
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
Migrated from D2981 (view on Phabricator)