Contributing¶
Thank you for considering contributing! This page summarizes the essentials; the full guide lives in CONTRIBUTING.md.
Prerequisites¶
- Python 3.11+
- uv
- Git
Development setup¶
git clone https://github.com/PurpleSwtr/docstr-health.git
cd docstr-health
uv venv
uv sync --group dev
Quality checks¶
Before opening a pull request, make sure everything passes:
uv run ruff check .
uv run mypy docstr_health
uv run pytest
Branching strategy¶
The project follows a Git-Flow-inspired model. main is stable; all work happens on dev and dedicated branches.
| Branch | Purpose |
|---|---|
main | Stable releases only. |
dev | Integration branch for day-to-day work. |
feature/* | New features, branched from dev. |
fix/* | Bug fixes, branched from dev. |
release/* | Release preparation, branched from dev. |
hotfix/* | Urgent production fixes, branched from main. |
Pull request process¶
-
Branch from
dev:git checkout dev git pull origin dev git checkout -b feature/your-feature-name -
Make your changes and commit using Conventional Commits — for example
feat: add --output flagorfix: handle empty modules. - Run the quality checks above.
- Open a Pull Request targeting
dev, link related issues withCloses #N, and request a review.
Commit types¶
| Type | Description |
|---|---|
feat | New feature |
fix | Bug fix |
docs | Documentation only |
style | Formatting, no code change |
refactor | Code change without behavior change |
test | Adding or fixing tests |
chore | Maintenance tasks |
Reporting issues¶
- Bugs — include the command you ran, the output, and your environment.
- Features — describe the use case and the benefit.
- Questions — open a discussion.
By contributing, you agree that your contributions are licensed under the Apache License 2.0.