HomeSoftware Heritage

Apply black formatting to Python code and add pre-commit hook

Description

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

Details

Provenance
anlambertAuthored on Apr 8 2020, 5:22 PM
anlambertPushed on Apr 8 2020, 6:21 PM
Parents
rDWAPPS3484be185fc8: requirements: Cleanup, normalize, sort depedencies and bump versions
Branches
Unknown
Tags
Unknown
Build Status
Buildable 11712
Build 17761: test-and-buildJenkins console ยท Jenkins