Develop Locally
Use this flow when working on the in-tree interview solution rather than an installed release.
Install the Toolchain
mise install
prek install
prek install --hook-type commit-msgRun the Current CLI
echo '{"hello":"world"}' | uv run mercuryThat path executes the package from the checked-out repository and is the default workflow during implementation.
Run Tests
uv run --extra dev pytest -vIf you change the package interface or parsing logic, keep the subprocess-oriented CLI tests passing so the interview demo path remains stable.
Regenerate Practice Fixtures
uv run problems/generate.pyThis rewrites the JSON datasets under problems/.
Build Distributables
uv buildThis should produce:
dist/*.tar.gzdist/*.whl
Validate the Docs Set
If you have prek installed, prek will run these checks for you on docs changes. Run them manually when you want faster feedback or prefer to check the docs set directly:
mise run docs-check-filenames
mise run docs-check-links
mise run docs-check-index
mise run docs-check-frontmatterRun these before release-oriented documentation changes so the Quartz bundle stays publishable.
Related
- python-package-contract — current package surface
- run-released-package — installed-release workflow instead of in-tree execution