- Always include short sphinx/numpy-style docstrings.
- Use
\ninstead of a line break on first line of docstrings. - Use snake_case and sequences of full words for variables rather than abbreviations or truncations of words.
- In commit messages, use + for code adds
- In commit messages, use - for code subtractions
- In commit messages, use ~ for refactors/fixes
- Avoid semantic commit messages.
- Either return the full code or only change code where required.
- Use precise variable names and code structure, rather than write comments.
- Prefer first party imports over adding dependencies over writing own code.
- Format first party imports to be above dependency imports, which are above current project imports.
- Encapuslate imports within function definitions rather than at top of file whererever possible.
- Prefer requests over httpx for making http requests.
- Prefer built-in types like
|, instead ofOptionaland typing` import. pdocsdocumentationpdoc -o /docs <project name>pytesttestingpytest -vvruffformattingrufflintingpyrighttype checkingtypos(if vsc)uvenvironment/python installationstructloglogging (viztrace on crashes)- Always avoid use of
Any. - Do not add global variables.