Skip to content

[SIGMON-551] format code with black

Simon Mazenoux requested to merge SIGMON-551-format-code-with-black into dev

Context

  • After thorough discussions, the decision was made to use black as a code formatter

What was done

  • Change pre-commit config to black
  • Add config for black in pyproject.toml
  • Add a step in the CI to check that the code is formatted
  • Ignore the commit where black was run to have a cleaner git blame

TODO

  • ?

QA

  • code was not unit tested, because it's only formatting
  • acceptance tests were written

Review objectives

  • ? assessment of code functionality
  • ? assessment of code quality

Merge request reports