๐ค Contributing
August 14, 2026 ยท View on GitHub
pydevices-examples is the examples, integration documentation, and PyScript gallery.
Examples, app helpers, gallery changes, and related docs are welcome here.
Reusable drivers, board configs, and product libraries belong in
pydevices.
Development setup
See Building and publishing documentation for local preview (mkdocs serve) and ReadTheDocs setup.
Quick version:
python3 -m venv .venv-docs
.venv-docs/bin/pip install -r docs/requirements.txt
.venv-docs/bin/mkdocs serve # http://127.0.0.1:8000
After editing files under lib/ (or install pre-commit hooks โ see below):
./scripts/install_refresh_manifests.sh # refresh packages/*.json and .site/pyscript/micropython.toml
Optional โ run codegen on commit (CI still audits if you skip this):
.venv/bin/pip install -r requirements-dev.txt
.venv/bin/pre-commit install
Hooks refresh install manifests when src/ changes and the PyScript gallery when
lib/examples/ (or gallery scripts) change.
Pull request workflow
- Fork PyDevices/pydevices-examples
- Create a feature branch
- Make changes; run
./scripts/install_refresh_manifests.sh --auditif you touchedlib/(or use pre-commit) - For docs: see Building docs โ
mkdocs serveand verify pages build - Open a PR against
mainwith a clear description
High-value contributions
- Board configs for new hardware
- Display/touch drivers for unsupported controllers
- C bus drivers (STM32, i.MX RT) compatible with BusDisplay
- Documentation fixes and platform guides โ see docstring conventions
- CircuitPython board configs and circup packaging
- PyScript asyncio examples and psdisplay improvements
Code style
Python is linted with Ruff โ see pyproject.toml. With pre-commit install, hooks
run Ruff, strip notebook outputs, refresh install manifests, and refresh the PyScript
gallery (narrow paths). CI keeps --audit / --check gates for contributors who do
not use pre-commit.
Public API docstrings: Docstring conventions.
Documentation
Maintainer releases: reusable product publishing is owned by
pydevices
and each companion package repo. pydevices-examples publishes documentation and the
PyScript showcase; see scripts/README.md.
License
Follow the license terms in the repository. Third-party utils retain their original licenses where noted.