Skip to content

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

  1. Branch from dev:

    git checkout dev
    git pull origin dev
    git checkout -b feature/your-feature-name
    
  2. Make your changes and commit using Conventional Commits — for example feat: add --output flag or fix: handle empty modules.

  3. Run the quality checks above.
  4. Open a Pull Request targeting dev, link related issues with Closes #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.