FCMpy package follows PEP-8 style guide.
- 4 spaces for indentation
- Vertically align longer expression
- 79 characters in a line (whenever possible)
- 72 characters in a line for comments (whenever possible)
- Add a break before or after a binary operator
- Top-level function and classes are separated by two blank lines
- Method definitions inide classes should be separated by one blank line
- Refer to PEP-8 examples
- State each import on a single line
- Order of imports:
- Standard library imports
- Related third-party imports
- Local application/library specific imports
- Absolute imports
- Block comments -> explain more complex code
- LIne comments -> simple lines.
- Use docstrings for public modules, files, classes and methods start with """"""
- Module -> lowercase
- Class -> CapWords
- Functions -> lowercase
- methods -> lowercase
- Type variables -> CapWords
- Constants -> UPPERCASE
- Package -> lowercase
- Do not use 'l', 'O', or 'I' as a single variable name