Answer prose round 1: 0 🔴, 9 🟡 (0 misread); docstrings say what the code does, and each fact sits in one place

This commit is contained in:
2026-11-10 22:32:49 +01:00
parent f2fef1d32d
commit 998e295ef9
17 changed files with 19 additions and 22 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
"""todo.md on disk: read it with the files beside it that ranking reads, rank it, write it back, and print what ranking reports."""
"""todo.md on disk: read it with the project files ranking reads, then rank or check it, write it back, and print what ranking reports."""
import pathlib
import sys
@@ -41,7 +41,7 @@ def check_failures(todo: pathlib.Path) -> list[str]:
def read_all(todo: pathlib.Path) -> tuple[str, str, str, str] | Failure:
"""todo.md, the README.md beside it, and its docs/decisions.md and docs/comprehension-history.md, each empty when there is none."""
"""todo.md, the README.md beside it, and its docs/decisions.md and docs/comprehension-history.md. The last two are empty when missing; a missing todo.md or README.md is a Failure."""
texts = []
for path, missing in ((todo, "every project keeps a todo.md beside its README.md, and rank_todo.py --help shows one"), (todo.parent / "README.md", "rank_todo.py weighs goals from the README.md beside todo.md"), (todo.parent / "docs" / "decisions.md", None), (todo.parent / HISTORY, None)):
try: