You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace the Prose Gate's Line Ceiling with a Check for Vocabulary in the Script #3441
TestHarness.test_the_gate_stays_under_its_size_ceiling in tests/test_prose_lint.py caps .github/actions/prose-gate/prose_lint.py at a line count, now 1862. Its docstring names what the cap is for: "Vocabulary and exemptions live in the data file, so the script holding them is a defect." A line count cannot tell that defect apart from parser logic, so every lexer fix that adds lines either moves the ceiling or compacts unrelated code to fit. The ceiling moved from 1800 to 1840 on #3427 and from 1840 to 1862 on #3437, and #3439 had to rewrite three untouched functions to stay inside it.
Decision
The maintainer chose, on 2026-10-24, to replace the line count with a check aimed at the concern itself.
What fixing it needs
A test that fails where prose_lint.py holds vocabulary or exemption data that belongs in prose-gate.json. Candidate shapes, to be judged in the lane:
No module-level set, frozenset, list, tuple, or dict literal of more than a small number of string elements. GIT_LOCATION, an environment-variable list rather than prose vocabulary, is the one existing case to settle explicitly.
No string literal matching an entry of the data file's word and phrase lists (spelling, dupword_allow, spelling_allow, the exemption lists), so a word copied from the data into the script fails.
Either way, the line-count assertion is removed in the same change, and the test proves itself by failing on a constructed script that carries a vocabulary list.
Activity
Keep Untracked Files Out of the Pre-Commit Snippet's Prose Gate (#3444)
Check the Prose Gate for Vocabulary Instead of Counting Its Lines (#3474
Promote the Prose Gate's Vocabulary Check and Its Review Fix to Main (#…