Development guide¶
This guide is for working on the repository locally.
Recommended environment¶
Use Python 3.11 or 3.12.
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e .
python -m pip install -e ".[dev]"
Useful commands¶
Run tests:
Build the distributions:
Project layout¶
src/monomech/— package sourcetests/— testsexamples/— notebooks and examplesdocs/— repository and release docs.github/workflows/— CI and publishing automation
Development expectations¶
- keep each stage modular
- preserve DataFrame-first outputs
- keep notebook workflows explicit and inspectable
- keep exports available in both biomechanics-native and CSV formats when applicable
When changing stage outputs¶
If you change stage tables or artifacts:
- update the relevant result object
- update tests
- update README output lists
- update any example notebook cells that mention those outputs
When changing publishing or GitHub automation¶
Update all of these together:
pyproject.toml.github/workflows/*.ymldocs/GITHUB_SETUP.mddocs/PUBLISHING.mddocs/RELEASING.md
Docs development¶
Use the docs site locally while editing:
The docs site is the best place to keep installation, stage behavior, outputs, and release instructions in sync.