- 2 spaces per indentation level, no tabs
- Use whitespace to make the code more readable
- No whitespace at the end of a line (trailing whitespace)
- Try to adhere to a 80 character line length limit
- No Unicode
- Spaces after commas
- Use lower case with underscores for method names, for example,
prime_decomposition
instead ofprimedecomposition
andbasis_matrix
instead ofbasismat
. The only exception are method names that start with anis
(predicates). In this case there is no underscore betweenis
and the word that follows. For example, it isissubgroup
instead ofis_subgroup
andistorsion_point
instead ofis_torsion_point
. - Use upper camel case convention for type names