Answer architecture round 1: 3 🔴, 13 🟡; one items-table reader, a pure measuring core, shared git and round-title modules, and a hook rule for round counts
This commit is contained in:
+2
-2
@@ -58,7 +58,7 @@ import pathlib
|
||||
import re
|
||||
import sys
|
||||
|
||||
from todo_table import cells, Item, ITEMS_HEADER, LEGACY_HEADER, parse_row, table_rows
|
||||
from todo_table import cells, Item, ITEMS_HEADER, parse_row, table_rows, WITHOUT_C
|
||||
from failure import Failure
|
||||
from markdown_text import FENCE, sections
|
||||
from file_writes import replace_file
|
||||
@@ -187,7 +187,7 @@ def rank(text: str, readme: str, decisions: str) -> Ranked | Failure:
|
||||
def read_scoring(text: str, lines: list[str], readme: str) -> Scoring | Failure:
|
||||
if ITEMS_HEADER not in lines and "## Items" not in lines:
|
||||
return Failure("todo.md is not in the scored-table format; rank_todo.py --help shows a valid one")
|
||||
if LEGACY_HEADER in lines:
|
||||
if WITHOUT_C in lines:
|
||||
return Failure("todo.md's items table has no C column; add one after S, and score each item's C from 1 to 10 per rank_todo.py --help")
|
||||
goals = readme_goals(readme)
|
||||
if isinstance(goals, Failure):
|
||||
|
||||
Reference in New Issue
Block a user