Coding style
- Code should fit into 80 columns
Python
- Indent by 4 spaces. No tabs allowed.
- An underscore prefix on an attribute name indicates a private attribute
This does not apply to top-level functions or arguments
- Imports:
- Grouped by: standard library; other libraries; Plash imports
- Within a group, imports are sorted alphabetically
Don't use from a.b import foo unless foo is used so much that it would significantly improve readability
- String literals: use double quotes by default, unless there is a good reason not to, such as when the string contains double quotes
Classes should be new-style classes: they should derive from object
Tests that cover a module called foo.py go in foo_test.py
