[SIGMON-551] format code with black
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