Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (44 sloc) 1.53 KB
Nova Style Commandments
Step 1: Read
Step 2: Read again
Step 3: Read on
- thou shalt not import objects, only modules
- thou shalt not import more than one module per line
- thou shalt not make relative imports
- thou shalt "from nova import vendor" before importing third party code
- thou shalt organize your imports according to the following template
# vim: tabstop=4 shiftwidth=4 softtabstop=4
{{stdlib imports in human alphabetical order}}
from nova import vendor
{{vendor imports in human alphabetical order}}
{{nova imports in human alphabetical order}}
{{begin your code}}
- thou shalt put two newlines twixt toplevel code (funcs, classes, etc)
- thou shalt put one newline twixt methods in classes and anywhere else
- thou shalt not write "except:", use "except Exception:" at the very least
- thou shalt include your name with TODOs as in "TODO(termie)"
- thou shalt not name anything the same name as a builtin or reserved word
- thou shalt not violate causality in our time cone, or else
Human Alphabetical Order Examples
import httplib
import logging
import random
import StringIO
import time
import unittest
Tool to make code PEP8 compliant
- Install :
- Usage in your project directory : pep8 --statistics --filename=*.py --show-source --show-pep8 .
Jump to Line
Something went wrong with that request. Please try again.