Skip to content

Release Process

This page describes how a new version of docstr-health is prepared and published.

Versioning

The project follows Semantic Versioning. The current version is defined in pyproject.toml:

[project]
name = "docstr-health"
version = "0.1.5"

Steps

1. Create a release branch

Branch off dev:

git checkout dev
git pull origin dev
git checkout -b release/x.y.z

2. Bump the version

Update version in pyproject.toml.

3. Update the changelog

Move the unreleased entries into a new section in CHANGELOG.md:

## [x.y.z] - YYYY-MM-DD

### Features
- …

### Bug Fixes
- …

4. Verify

uv run ruff check .
uv run mypy docstr_health
uv run pytest

5. Merge into dev, then main

Open a PR from release/x.y.z into dev, then merge dev into main once everything is green.

6. Tag the release

git tag -a vx.y.z -m "Release x.y.z"
git push origin vx.y.z

7. Build and publish

uv build
uv publish

The packages (sdist and wheel) are uploaded to PyPI.

8. Merge back

Merge main back into dev so the two stay in sync.