Answer prose round 1: 0 🔴, 13 🟡 (0 misread); make each docstring say what its function now does, and sort the README's text_files bullet
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
"""Holds todo.md and docs/decisions.md to each other: every item a decision cites is in the plan and exempt from the bar, and every item marked decision is cited."""
|
||||
|
||||
import re
|
||||
|
||||
from failure import Failure
|
||||
@@ -7,7 +5,7 @@ from release_plan.todo_table import Item
|
||||
|
||||
|
||||
def check_citations(items: list[Item], decisions: str) -> Failure | None:
|
||||
"""Holds todo.md and docs/decisions.md to each other: a cited item is exempt, a decision row is cited."""
|
||||
"""Holds todo.md and docs/decisions.md to each other: every item a decision cites is in the plan and exempt from the bar, and every item marked decision is cited."""
|
||||
cited = set(cited_items(decisions))
|
||||
if gone := sorted(cited - {item.id for item in items}):
|
||||
return Failure(f"docs/decisions.md cites \"`todo.md` item {gone[0]}\", which todo.md no longer holds; revise that decision to say what holds now")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""The goals file, read once for everyone: its ## Goals and ## Audience sections, the goals ## Goals numbers and marks, and what each goal weighs."""
|
||||
"""Reads the goals file, for the ranking and for loop-claude's premises: its ## Goals and ## Audience sections, each goal's number and mark, and what each goal weighs."""
|
||||
|
||||
import decimal
|
||||
import re
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""todo.md on disk: read it with the files ranking reads, at the paths the project's config names, then rank or check it, write it back, and print what ranking reports."""
|
||||
"""todo.md on disk: read it with the files ranking reads, at the paths the project's config names, then rank or check it, write it back, and give the lines ranking reports."""
|
||||
import pathlib
|
||||
|
||||
from failure import Failure
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Rank todo.md's items by the formula it states, weighing the goals as goals_file.py weighs them, and hold them to its bar; rank_todo.py --help states the rules.
|
||||
"""Rank todo.md's items by the formula it states, with the goal weights goals_file.py gives, and hold them to its bar; rank_todo.py --help states the rules.
|
||||
"""
|
||||
import ast
|
||||
import dataclasses
|
||||
|
||||
@@ -89,7 +89,7 @@ def write_cited(moves: Moves) -> str:
|
||||
# L, E and I are optional, since score_outcomes reads, out of git history, tables from before they replaced C; R too, since rank_todo.py writes it from them.
|
||||
SHAPE = Shape(("L", "E", "I", "R", "S"), (BLOCKED_BY, "L", "E", "I", "R", "Score"), ("L", "E", "I"), ("R",), MOVES, parse_moves, write_moves)
|
||||
# The shape from before MOVES replaced A, G and Goals, and L, E and I replaced C, which older todo.md files hold; one from before C joined lacks it.
|
||||
# It is live, not dead: rank_todo.py still ranks such a table, so no other project's commits stop before it reshapes, until `todo.md` item 156 drops that ranking once no project holds one. score_outcomes keeps reading old tables out of git history after that.
|
||||
# Live: rank_todo.py ranks a table in this shape, so a project that has not reshaped yet can still commit. `todo.md` item 156 drops that ranking once no project holds such a table; score_outcomes goes on reading old tables out of git history.
|
||||
OLD_SHAPE = Shape(("R", "S", "C", "A", "G"), (BLOCKED_BY, "C", "Score"), (), (), "Goals", parse_cited, write_cited)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user