Development and documentation contribution guidelines.
- Pixi (recommended): install Pixi, then run
pixi install. Environments are defined inpyproject.tomlundertool.pixi.environments(e.g.cuda128,cuda126,test-cu128,test-cu126,example,example-cu128,example-cu126). - pip: create a virtual environment and install the package in editable mode:
python -m venv .venv && source .venv/bin/activate && pip install -e ".[examples,fev,gluonts]" - Tooling: run
pre-commit installonce, thenpre-commit run --all-filesandpixi run test(orpytest test/in a pip environment) before opening a PR.
- Branch from
mainand keep changes focused (docs versus code versus tooling). - Run pre-commit and tests locally before pushing.
- Open a PR with a clear summary, test notes, and any follow-up TODOs.
- Address CI feedback — red checks block review.
Commit messages are linted by conventional-pre-commit and must
follow type(scope): summary with one of chore, ci, docs, feat, fix, test
(a scope is required).
The documentation site lives under docs/ and is built with
MkDocs + Material for MkDocs
- Install docs dependencies:
pip install -r docs/requirements.txt - Preview locally:
mkdocs serve - Build (as CI does):
mkdocs build --strict - The API reference is generated automatically from docstrings in
src/tirex2/via mkdocstrings — update the docstring, not the generated page, and add a runnable usage example to any public function or class that doesn't already have one. - Add new guides under
docs/and register them in thenavsection ofmkdocs.yml.
- Avoid committing generated artifacts (e.g.
.pixi/,output/,model,*.csv,*.egg-info,site/— see.gitignore) unless they are intended changes. - Rebase (don't merge) when syncing from
main. - Respond to every review comment; clarify disagreements rather than ignoring them.
- Open a draft PR early for directional feedback.
- Use GitHub Issues/Discussions for larger proposals.
Read the full CLA for Individual Contributors here: CLA
If you have any question about the CLA, feel free to reach out to contact@nx-ai.com