- Follow PEP8 as much as you can (use pylint, default in vscode)
- Use google-style docstrings.
- PascalCase: for class names
- UPPER_SNAKE_CASE: for constants
- snake_case: for everything else
- Use black
- Max line width of 120 characters, vscode settings:
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--line-length=120",
"--target-version=py37",
],
"editor.formatOnSave": true,
- Make sure the code is tested, documented, then create a draft pull request from your feature branch.