> ## Documentation Index
> Fetch the complete documentation index at: https://khaos-ml.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Contributing

> Dev setup, tests and commit conventions.

## Setup

```bash theme={null}
uv sync --extra dev
uv run pytest tests
```

## Docs preview

The docs use [Mintlify](https://www.mintlify.com/docs). From the `docs/` directory:

```bash theme={null}
npm i -g mint
mint dev
```

The preview is served at `http://localhost:3000`.

## Releasing to PyPI

The package is published as `khaos-ml`. Releases are tag-driven: a push to `master` runs the tests
(`ci.yml`), and pushing a tag runs `release.yml`, which checks the tag against the version, runs the
tests, builds, and publishes with PyPI trusted publishing (no token is stored anywhere).

1. Set `__version__` in `khaos/__init__.py`. It is the only place the version lives.
2. Commit, then tag and push: `git tag v1.0.1 && git push origin master v1.0.1`.

PyPI refuses to upload the same version twice, so every release needs a new version number.

## Commit conventions

* All lowercase, short and concise
* Prefix with a tag: `feat`, `fix`, `chore`, `refactor`, `docs`, `test`
* The first commit of the project is `init commit`
* Never push to `master` without maintainer approval

## Adding a vertical (placeholder)

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

```text theme={null}
khaos/<vertical>/
├── __init__.py
├── adapter.py
└── containers.py
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.