Setup¶
pylcm uses pixi for dependency management. Python 3.14+ is required.
# Clone the repository
git clone https://github.com/OpenSourceEconomics/pylcm.git
cd pylcmThe first pixi run command will install dependencies automatically, but you can run
pixi install explicitly if you prefer. Run pixi task list to see all available
tasks.
Install pre-commit hooks (requires prek):
pixi global install prek
prek installRunning Tests¶
# All tests
pixi run tests
# Tests with coverage
pixi run tests-with-cov
# Specific test file
pixi run pytest tests/test_specific_module.py
# Specific test function
pixi run pytest tests/test_specific_module.py::test_function_nameCode Quality¶
# Type checking (ty, not mypy)
pixi run ty
# Run all pre-commit hooks
prek run --all-filesBuilding Documentation¶
# Build docs
pixi run build-docs
# Live preview (watches for changes)
pixi run view-docsContributing¶
Report bugs and suggest features on the GitHub issue tracker.