Date: 2019-07-07
Architecture issue: #249
Accepted
Proper code formatting is vital to the long-term viability and maintainability of a code base. In place, a codebase with such formatting is:
- easier to review
- easier to diff against previous commits
- more likely to be free of linting errors
- We use Black as code formatter for the back-end codebase.
- We use Black's default options.
- We CI to ensure PRs are appropriately formatted before being accepted.
- We recommend and document the setup of
Black
,pylint
,flake8
, andisort
in the development environment.
- We retain Flake8, but set
max-line-length = 88
andignore = E501, W503, E203
tosetup.cfg
. - We retain pylint, but disable all formatting checks and
wrong-import-order
. The import order is handled byisort
.