Some more conventions.
This commit is contained in:
parent
7b1e9fafe5
commit
bdd60f7c28
21
CodingStyle
21
CodingStyle
|
@ -43,6 +43,27 @@ Files are terminated by *one* CR (0x0a) character; not two. This is the only
|
|||
place where you MUST pay attention to file size.
|
||||
|
||||
|
||||
Sorting
|
||||
-------
|
||||
Imports are sorted alphabetically, with:
|
||||
* Python standard modules first
|
||||
* Non standard modules second
|
||||
* Expression modules last
|
||||
|
||||
Classes within one file are sorted alphabetically.
|
||||
|
||||
Attributes are placed before methods and sorted alphabetically.
|
||||
All attributes must be explicitly declared (be it an instance or
|
||||
a class attribute).
|
||||
|
||||
Methods within a class are sorted alphabetically.
|
||||
|
||||
|
||||
Quotes
|
||||
------
|
||||
Enclose strings using double quotes, not single quotes.
|
||||
|
||||
|
||||
Disagreement
|
||||
------------
|
||||
|
||||
|
|
Reference in New Issue