Answer prose round 1: 0 🔴, 6 🟡 (0 misread); reword the help, docstrings, rule and item text
This commit is contained in:
@@ -85,7 +85,7 @@ class FilePlan:
|
||||
return ranked
|
||||
|
||||
def check(self) -> list[str]:
|
||||
"""Why `rank_todo.py --check` fails on the file, empty when it passes: the file is not ranked, an item scores under the bar, or an item's `Touches:` list is one touch-predictions cannot read."""
|
||||
"""Why `rank_todo.py --check` fails on the file, empty when it passes: the file is not ranked, an item scores under the bar, or touch-predictions cannot read an item's `Touches:` list."""
|
||||
texts = self.texts()
|
||||
if isinstance(texts, Failure):
|
||||
return [texts.reason]
|
||||
@@ -117,7 +117,7 @@ class FilePlan:
|
||||
|
||||
|
||||
def unreadable_touches(todo: str) -> list[str]:
|
||||
"""Why touch-predictions cannot read each item's `Touches:` list that it cannot. Every item is read, not only the next release's: a later item moves into the next release with its detail, and the list is fixed most cheaply where it was written."""
|
||||
"""One line per item whose `Touches:` list touch-predictions cannot read, saying why. Every item is read, not only the next release's: a later item moves into the next release with its detail, and the list is fixed most cheaply where it was written."""
|
||||
details = item_details(todo)
|
||||
if isinstance(details, Failure):
|
||||
return [details.reason]
|
||||
|
||||
+2
-2
@@ -12,7 +12,7 @@ then by ID. Then it moves each blocker, an item another's Blocked by cell names,
|
||||
an item it blocks to just above the first such item. Orders the details to match. Writes each
|
||||
item's R, and adds the Blocked by and R columns to a table without them. --check doesn't write
|
||||
anything and fails when the file is not ranked as it would be, or when an item's detail holds a
|
||||
`Touches:` list that touch-predictions cannot read, as `touch-predictions --help` spells it.
|
||||
`Touches:` list not spelt as `touch-predictions --help` shows.
|
||||
|
||||
A valid todo.md; ## Details and each item's detail are optional:
|
||||
|
||||
@@ -88,7 +88,7 @@ Exit 1, saying why, on bad arguments, a checkout no config names or a config tha
|
||||
file given that is not the config's plan, a file that cannot be read or written, a todo.md, goals file or docs/decisions.md that breaks the
|
||||
rules above, a scoring run on docs/comprehension-history.md's newest scored commit with no Mean row
|
||||
ending in its overall, an item that is not exempt scoring under the bar, or --check finding the file
|
||||
unranked or a `Touches:` list it cannot read.
|
||||
unranked, or an item's `Touches:` list unreadable.
|
||||
"""
|
||||
import pathlib
|
||||
import sys
|
||||
|
||||
Reference in New Issue
Block a user