Skip to content

Installation

Requirements

  • Python 3.11 or newer (CPython)
  • Git — only required for scanning remote Git repositories

The only runtime dependency is Rich, which is installed automatically.

Using pip

pip install docstr-health

Using uv

Install as a globally available tool:

uv tool install docstr-health

Or run it ad-hoc without installing:

uvx docstr-health /path/to/project

From source

git clone https://github.com/PurpleSwtr/docstr-health.git
cd docstr-health

uv venv
uv sync

Then run the CLI through uv:

uv run docstr-health --version

Verify the installation

docstr-health --version

Pre-commit hook

docstr-health can be used as a pre-commit hook:

repos:
  - repo: https://github.com/PurpleSwtr/docstr-health
    rev: v0.1.5 # use the latest tag
    hooks:
      - id: docstr-health

See Thresholds & CI Mode for args, failure_level, and threshold configuration.

Next steps