Black code formatter

Context and problem statement

Archivematica code style is inconsistent and controversial. Formatting is a distraction from content and a constant dilemma in our code review process.

The style guide described by PEP 8 is not specific enough and Python is too flexible. Every project ends up with its own style and memorizing the rules is hard.

With the recent rise of auto formatters such gofmt or Prettier, we see the value of ceding control to an opinionated tool.

Considered options

Decision outcome

Chosen option: “black”, because: