Skip to content

docs: enforce public docstring coverage via ruff D1 and backfill#2

Merged
jeqcho merged 1 commit into
mainfrom
docs/public-docstring-gate
Jul 14, 2026
Merged

docs: enforce public docstring coverage via ruff D1 and backfill#2
jeqcho merged 1 commit into
mainfrom
docs/public-docstring-gate

Conversation

@jeqcho

@jeqcho jeqcho commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Adds Ruff's pydocstyle presence rules via extend-select = ["D1"] (this repo runs ruff's default rule set, so extend-select preserves the baseline) with D105/D107 exempt and tests excluded. Backfills the two missing public docstrings in cli.py. Public docstring coverage (interrogate, excluding private/nested/init): 81.8% -> 100.0%.

The requirement is documented in CLAUDE.md and the README, and the README gains the gate-backed docs-coverage badge next to the existing badges.

All gates green locally: ruff check, ruff format, strict mypy, pytest at 100% coverage (9 passed).

Part of the org-wide rollout (kitchenbench #22, inspect-robots #51, plus yam/so101/worldevals in flight). Implemented by Codex (GPT), reviewed by Fable.

🤖 Generated with Claude Code

Enable Ruff's public pydocstyle rules via extend-select (preserving the
default rule baseline), exempt magic methods and __init__, exclude tests,
and backfill the two missing public docstrings in cli.py. Document the
gate in CLAUDE.md and README, with the gate-backed docs-coverage badge.

Interrogate public docstring coverage: 81.8% before, 100.0% after.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jeqcho
jeqcho force-pushed the docs/public-docstring-gate branch from 11ff15b to 4171335 Compare July 14, 2026 01:15
@jeqcho
jeqcho merged commit 2b98f8b into main Jul 14, 2026
6 checks passed
@jeqcho
jeqcho deleted the docs/public-docstring-gate branch July 14, 2026 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant