This guide details code quality standards, tools, and testing commands used in development.
Before committing code, ensure it adheres to linting and style specifications using:
- Black: Auto-format python modules to standard 88 character styles.
- isort: Organize python module import blocks.
- Ruff: Enforce Python style guide rules.
- mypy: Enforce static typing.
- pytest: Confirm code health using unit tests.
Our codebase maps testing and verification to the project Makefile:
- Auto-formatting code:
make format
- Linting and verification checks:
make lint
- Running the unit tests:
make test
- Keep files modular and stick to single responsibility principles.
- Code must have complete PEP 484 type hints.
- Functions require google-style docstrings.