Skip to content

v1.0.0

Choose a tag to compare

@Alberto-Codes Alberto-Codes released this 21 Feb 22:21
· 248 commits to main since this release
v1.0.0
ce75769

docvet v1.0.0

Comprehensive docstring quality vetting for Python. Fills the gap between style linting (ruff D rules) and presence checking (interrogate) by verifying docstrings are complete, accurate, and renderable.

Features

  • enrichment: 10 rules detecting missing docstring sections — Raises, Yields, Receives, Warns, Other Parameters, Attributes, Typed Attributes, Examples, Cross-references, and fenced code blocks
  • freshness: 5 rules detecting stale docstrings — signature changes (HIGH), body changes (MEDIUM), import changes (LOW), git-blame drift, and age-based staleness
  • coverage: missing __init__.py detection for mkdocs discoverability
  • griffe: 3 rules capturing griffe parser warnings for mkdocs rendering compatibility
  • reporting: markdown and terminal output with configurable formats
  • cli: 5 subcommands (check, enrichment, freshness, coverage, griffe) with --staged, --all, --files, --format, and --output options
  • integrations: pre-commit hook and GitHub Action for CI/CD pipelines
  • config: [tool.docvet] section in pyproject.toml with per-check configuration

Install

pip install docvet