Developer setup
Requirements
- Python 3.12+
uv- POSIX shell for the Makefile workflow
- Real hardware is not required for normal development
Bootstrap
Optional hooks:
Common commands
make run
make simulate
make doctor
make format
make lint
make typecheck
make test
make coverage
make check
make docs
make docs-serve
The normal development stack uses mock hardware.
Configuration
The root settings model is robot.config.AppSettings.
Configuration precedence is designed so environment variables can override
YAML and .env values. Nested fields use __:
See Configuration.
Testing
Tests are divided into:
tests/unit/tests/integration/tests/fakes/
The suite is intended to run without GPIO, SPI, camera, microphone, or speaker hardware.
Adding a feature
Prefer this sequence:
- Define the interface or data contract if the feature crosses a boundary.
- Implement the behavior independently of hardware.
- Wire it through the application composition root.
- Add unit tests.
- Add an integration test for cross-subsystem behavior.
- Update documentation and configuration examples.
Adding a hardware backend
- Implement the relevant protocol.
- Add the implementation under
robot.hardware. - Register it in its factory.
- Add configuration.
- Add a fake or injectable transport for tests.
- Document hardware requirements and failure modes.
Documentation
MkDocs with Material-style extensions and mkdocstrings is configured in
mkdocs.yml.
Build:
Serve locally: