Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • B baobaxia
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 67
    • Issues 67
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • NPDD
  • baobaxia
  • Issues
  • #45

Closed
Open
Created May 15, 2014 by Vince Tozzi@vinceOwner

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.

Assignee
Assign to
Time tracking

Data Center Comunitário Livre - DCCL