Code standards
Created by: agger-magenta
The project should adopt code standards to make the code more predictable and easier to read.
These standards include:
- Imports should be ordered as proposed in the book "Two Scoops of Django": First standard library imports, then 3rd party libraries, then django imports, then local app imports.
- PEP-8.
I propose to enforce these standards by introducing flake8 in the automatic testing, which also uses pyflake and tests the McCabe complexity. This may turn out to be too rigorous, and if so I propose stepping down to using only pep8.
This also means limiting line length to a maximum of 80 characters. As someone who likes to edit code using vim in a terminal, I find that this restriction makes the code much easier to read.
I will leave this ticket open a couple of days before starting implementation in order to allow people to argue against these changes.