Skip to content

docs+style: 100% docstrings, interrogate config, ruff format + pin - #13

Merged
wesleyscholl merged 3 commits into
mainfrom
claude/konjo-kyro-ffx3n6
Jun 22, 2026
Merged

docs+style: 100% docstrings, interrogate config, ruff format + pin#13
wesleyscholl merged 3 commits into
mainfrom
claude/konjo-kyro-ffx3n6

Conversation

@konjoinfinity

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #12, clearing the two remaining (CI non-blocking) Konjo findings plus a docs-accuracy fix. Three independent, reviewable commits:

1. Docstrings β†’ 100% on public APIs (82f2611)

interrogate was at ~65%. Added concise, behavior-describing docstrings across the konjoai package and added the missing [tool.interrogate] config to pyproject.toml encoding the documented "interrogate --fail-under 100 on all public APIs" policy (ignore private/dunder/__init__/nested/property; exclude tests/evals/demo).

  • Docstrings only β€” no logic/signature changes; the handful of deletions are trivial pass/... stub bodies replaced by the docstring.
  • Now passes at 100% both under the policy and with no ignores at all.

2. Fix stale CLAUDE.md facts (73c3988)

Header said v1.2.0 / 798 tests; the package is v1.9.1 / 1287 tests.

3. Repo-wide ruff format + pin ruff (6e50db1)

ruff format --check (Wall 1 / CI) was flagging 131 files β€” drift from CI installing a newer ruff than the tree was last formatted with. Ran ruff format . (132 files, formatting only) and pinned ruff==0.15.18 in requirements-dev.txt so local and CI stay in lockstep and the drift doesn't recur.

Verification (local)

  • pytest β€” 1287 passed, 7 skipped
  • interrogate β€” 100% Β· ruff check + ruff format --check β€” clean
  • DRY 0 Β· vulture clean Β· complexity 0 functions >15 Β· coverage 83.3%

πŸ€– Generated with Claude Code


Generated by Claude Code

claude added 3 commits June 21, 2026 11:47
Add concise, behavior-describing docstrings across the konjoai package to
satisfy the documented gate (.claude/rules/python-conventions.md:
"interrogate --fail-under 100 on all public APIs"), which was sitting at
~65%. Docstrings only β€” no code, logic, or signature changes; the few
deletions are trivial `pass`/`...` stub bodies replaced by the docstring.

Also add the missing [tool.interrogate] config to pyproject.toml encoding
the "public APIs" policy (ignore private/dunder/__init__/nested/property,
exclude tests/evals/demo) so the gate is reproducible. interrogate now
passes at 100% both under that policy and with no ignores at all.

Verified: interrogate 100%, 1287 passed / 7 skipped, ruff clean,
DRY 0, vulture clean, complexity unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qhBs76YizHXGRK2yRu6VA
Header said v1.2.0 / 798 tests; package is v1.9.1 with 1287 tests passing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qhBs76YizHXGRK2yRu6VA
Run `ruff format .` repo-wide so `ruff format --check` (Wall 1 / CI) is
clean. The drift came from CI installing a newer ruff (0.15.x) than the
tree was last formatted with; pin ruff==0.15.18 in requirements-dev.txt
so local and CI formatting stay in lockstep and this doesn't recur.

Formatting only β€” no logic changes. 1287 passed / 7 skipped, ruff clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qhBs76YizHXGRK2yRu6VA
@wesleyscholl
wesleyscholl marked this pull request as ready for review June 22, 2026 02:54
@wesleyscholl
wesleyscholl merged commit fdb8909 into main Jun 22, 2026
7 checks passed
@wesleyscholl
wesleyscholl deleted the claude/konjo-kyro-ffx3n6 branch June 22, 2026 02:55
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.

3 participants