Repository navigation
Description
CodeRabbit's pre-merge checks include a Docstring Coverage check that warns below 80 percent, scoped to the functions a diff touches. Nothing in this repository enforces docstring coverage, so the check raises an item no gate will ever confirm or deny.
Measured on the current tree:
- No CI step, composite action, or hook runs a docstring-coverage tool.
grepover.github/workflows/,.github/actions/,.husky/andpyproject.tomlfinds nointerrogate, nopydocstyle, and no ruffDrules. pyproject.toml's ruff configuration setsextend-select = ["I"], isort ordering on top of the defaults. TheDfamily is not selected..coderabbit.yamlconfigures no docstring rule, so the 80 percent threshold is CodeRabbit's own default rather than a fleet decision.- The threshold does not describe this repository's code.
scripts/tests/test_spec_validate.py's methods, measured before any recent change, sit at 49.6 percent, 63 with a docstring against 64 without.
It fires inconsistently rather than steadily, which is what makes it easy to merge past without deciding: warning on #1556 and #1547, passed on #1550 and #1541.
Why this belongs in the config
.coderabbit.yaml already settles this exact shape for four tools, disabling markdownlint, actionlint, shellcheck and ruff with the reason stated in the file: "CI runs these four linters and fails the pull request on them, so a review comment from the same tool is a second copy of a red check." A pre-merge check that no CI step runs is the mirror of that case. Rather than duplicating a red check it raises one that nothing can ever turn red, so a reader cannot tell a real miss from the default threshold.
What closing this takes
Decide, and record the decision in the config beside its siblings with a comment saying why:
- Disable the docstring-coverage pre-merge check, consistent with how the four tool entries are already handled.
- Or set a threshold that describes the fleet's actual convention, in which case the measured baseline above is the starting point rather than 80 percent.
Worth deciding in the same pass whether the fleet wants a docstring convention for test methods at all. CODESTYLE.md governs comments and docstrings, and if a rule is wanted then it belongs in CI as ruff D rules where a pull request fails on it, rather than in a reviewer's advisory check that every author reargues from scratch.
Raised while driving #1556, where the finding was declined with this evidence rather than acted on, since a warning nothing enforces is a class question rather than that pull request's defect.
Activity
ptr727 commentedon Nov 1, 2026
Decision needed (decision triage, 2026-11-01)
Question: Should
.coderabbit.yamlturn off CodeRabbit's Docstring Coverage pre-merge check (default 80%, enforced by no CI step), set its threshold to the measured ~50% baseline, or should docstrings be enforced in CI with ruffDrules?Options, recommended first:
Evidence: .coderabbit.yaml:28-38 disables four
tools:entries ("CI runs these four linters"), and has nopre_merge_checksor docstring key, so 80% is the default. pyproject.toml:8extend-select = ["I"], noD. python-codestyle references/code-style.md:26-36 sets PEP 257 and one-liner-is-fine..coderabbit.yamlis not in spec/files.json. The check fired inconsistently (warned on #1556, #1547, passed on #1550, #1541).Blocks: none
ptr727 commentedon Nov 1, 2026
Maintainer answer (decision triage, 2026-11-01): Option 1: turn CodeRabbit's docstring-coverage pre-merge check off in .coderabbit.yaml, with a comment saying why. This is now work for the next burndown round.
ptr727 commentedon Nov 24, 2026
Released (2026-11-24): #4400 answered that #1558 is obsolete; no branch was ever created, so this claim holds no files.
Backlog burndown claim (away run 2026-11-24, round 2, group 5): branch
burndown/coderabbit-docstring-check, issue #1558.Predicted files:
.coderabbit.yaml, turning CodeRabbit's docstring-coverage pre-merge check off with a comment saying why, per the maintainer's answer of 2026-11-01 (option 1).docs/pr-reviewer-reference.md, the CodeRabbit configuration bullet that lists what.coderabbit.yamlturns off.Any other group needing one of these files waits for this branch to merge.
Parked on decision #4400: CodeRabbit retired the Docstring Coverage check, so the planned edits are on hold. No branch was pushed.
ptr727 commentedon Nov 24, 2026
Backlog burndown park (away run 2026-11-24, round 2, group 5): no code written, no branch pushed, no PR, no worktree created. CodeRabbit's schema marks
reviews.pre_merge_checks.docstringsdeprecated with no effect (the check is retired), so the recorded option 1 would add a no-op key. Waiting on decision #4400 (recommended: close #1558 as obsolete). A fresh worker resumes by creating branchburndown/coderabbit-docstring-checkfrom origin/develop and, only if the decision picks option 2, settingreviews.pre_merge_checks.docstrings.mode: "off"in.coderabbit.yamlplus the CodeRabbit bullet indocs/pr-reviewer-reference.md.ptr727 commentedon Nov 24, 2026
Closed as obsolete per the maintainer's answer on #4400 (2026-11-24): CodeRabbit retired the Docstring Coverage check, so there is nothing to turn off.