Skip to content

Contributing

Thanks for your interest in contributing! This page summarizes the key steps. See CONTRIBUTING.md on GitHub for the full details.

Dev setup

This project uses uv.

git clone https://github.com/martinez-hub/mushin
cd mushin
uv sync            # create the dev environment from uv.lock
pre-commit install  # recommended: runs ruff + codespell on each commit

The local gate

Before opening a PR, run the same checks CI runs:

make check   # lint + format-check + spell + lock-check + tests

Individual shortcuts: make lint, make format, make spell, make test, make test-py PYTHON=3.12.

Changelog fragments

mushin uses towncrier for changelogs. Every user-facing PR needs a news fragment in changes/:

changes/<id>.<type>.md

Where <id> is the GitHub issue or PR number (or + and a short slug for pre-issue work, which the release renames after the PR that added it), and <type> is one of added, changed, fixed, removed, deprecated, or misc. The fragment body is a single plain-English sentence describing the change. The exception is misc, the escape hatch for PRs with nothing user-facing, which renders without that text (see changes/README.md).

Example:

changes/42.added.md
Added `ignore_index` support to `compare` for segmentation tasks.

The CI changelog job will fail if a PR omits a fragment (unless the PR has the changelog-exempt label, reserved for release PRs).

Adding a docs page

A new page goes in mkdocs.yml's nav and in docs/llms.txt, the index for LLMs and coding agents that the site serves at its root. CI fails if the two disagree. Check locally with:

make docs-build
uv run --extra eval pytest tests/test_llms_txt.py tests/test_docs_claims.py

Coding agents

Coding agents working on mushin should read AGENTS.md: the same rules as this page, plus the invariants CI enforces.

Releases

See RELEASING.md on GitHub for the release checklist.