Repository navigation
docs(contributing): paraphrase the quoted rulings on the conventions pages, and stop asserting them as literal strings #949
Description
Activity
- added a commit that references this issue
on Sep 30, 2026 - addedchoreMaintenance work: tooling, repo hygiene, no library behaviour changeMaintenance work: tooling, repo hygiene, no library behaviour changedocsPull requests that change documentation only (docs: subject prefix)Pull requests that change documentation only (docs: subject prefix)testPull requests that add or correct tests (test: subject prefix)Pull requests that add or correct tests (test: subject prefix)
on Sep 30, 2026 Blocked, with a checkable condition rather than a remembered one. This issue rewrites prose in the same files two open pull requests are editing, so doing it now would conflict on every page.
$ gh pr list -R JarryShaw/PyPCAPKit --state open --json number,files \ -q '.[]|"#\(.number) \(.files|map(.path)|map(select(test("conventions|test_conventions")))|join(" "))"'- docs: retarget every dead :rfc:
959sub-section anchor (#944) #946 —tests/project/test_rfc_anchor_fragments.pyand four roles indocs/source/contributing/conventions/registry-protocol.rst. - docs(contributing): record the get-override rulings on the conventions page (#918) #948 —
registry-protocol.rst, the newprocess.rst,index.rstandtests/project/test_conventions_doc_claims.py, which is where the quoted-string assertions this issue removes actually live.
Unblocks when both are merged; nothing else gates it. The scope is unchanged from the body — the pages plus the
assertIncalls that pin a sentence, with #948's own four quotes already paraphrased there rather than here.One addition to scope found since filing:
pyproject.toml:115and:224also quote the maintainer verbatim in comments. Same treatment — paraphrase, keep the issue number.- docs: retarget every dead :rfc:
- addedblockedDeferred pending another issue or decision; see the last comment for what unblocks itDeferred pending another issue or decision; see the last comment for what unblocks it
on Sep 30, 2026 One more item for this issue's scope, found by #948's round-11 review and deliberately not fixed there.
tests/project/test_conventions_doc_claims.pyindexesvars(Method)['get'],vars(Command)['get']andvars(OptionType)['get']directly. If any of those three ever folds its owngetinto the inherited base — exactly what #940 did to the mh/ngap helpers — the test raises a bareKeyError: 'get'instead of a diagnosticAssertionError.It fails loudly either way, so no regression passes silently; this is diagnostics quality rather than correctness, which is why #948 was not held for it. The sibling at
:920already does it right, usingassertNotIn('get', vars(klass))— membership, not indexing.Also worth folding in while these files are open: the new
assertNotInguarding the dependabot attribution pins one exact phrasing, so a differently-worded re-attribution ofgithub_actionswould slip past it. An inherent limit of substring pinning that this suite documents elsewhere, but worth a second look when the paraphrase pass rewrites that section anyway.Scope now: the pre-existing verbatim quotes across the convention pages, the
pyproject.toml:115/:224comments that quote the maintainer, these two test-robustness items, and — from #948's round 8 — the Audit, per Class population figures (127EnumRegistrysubclasses, 117 int-valued, 151 total, theR1_Countercollision), which need the runtime enumeration walk extended to pin.Still
blocked: #948 isreview: good-to-goand awaiting the maintainer's merge; this issue rewrites the same files.- addedwipWork in flight - a covering PR is open or an agent is actively on itWork in flight - a covering PR is open or an agent is actively on itand removedblockedDeferred pending another issue or decision; see the last comment for what unblocks itDeferred pending another issue or decision; see the last comment for what unblocks it
on Sep 30, 2026 - removedwipWork in flight - a covering PR is open or an agent is actively on itWork in flight - a covering PR is open or an agent is actively on it
on Sep 30, 2026
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsDone
Describe the bug
The convention pages record the maintainer's design rulings by block-quoting him verbatim, and several tests assert those quoted sentences as literal strings. He has asked to be paraphrased instead (#918). Two problems, one stylistic and one functional:
tests/project/test_conventions_doc_claims.pyasserts the literal'I prefer (2) directly.'and'I lean on 1.'appear on a page, so a one-line reply in a thread is load-bearing in CI.Reproduction
Expected behavior
Paraphrase the substance, keep the attribution by issue number, and pin the claim rather than the wording:
Scope
docs/source/contributing/conventions/.assertInintests/project/that pins a quoted sentence.Notes
registry-protocol.rstcount of 7 includes one legitimate use of the word (forwards ``default`` verbatimat:307), so the real quote count there is 6.System information
pcapkitcommit210bdb419, Python 3.14.7, CPython, Linux.