Answer architecture round 2: 0 🔴, 0 🟡; say which goals an old-shape item may name, and name larv-review's import of rank_todo in README
This commit is contained in:
+2
-2
@@ -119,7 +119,7 @@ class Scoring:
|
||||
formula: ast.Expression
|
||||
bar: float
|
||||
next_id: int
|
||||
# The goals an item may name, in rank order, each with its mark: code health first, unless README.md voids it, then README.md's goals in reading order.
|
||||
# Every goal in rank order, each with its mark: code health first, unless README.md voids it, then README.md's goals in reading order. In OLD_SHAPE an item may name only the goals weights holds.
|
||||
goals: dict[str, Mark]
|
||||
# The weight of each goal an item may name: in OLD_SHAPE each of README.md's goals, at the weight todo.md states; else each goal goal_weights weighs.
|
||||
weights: dict[str, float]
|
||||
@@ -305,7 +305,7 @@ def read_scoring(text: str, lines: list[str], readme: str, decisions: str, histo
|
||||
|
||||
|
||||
def ranked_goals(readme: str, decisions: str) -> list[tuple[str, Mark]] | Failure:
|
||||
"""Every goal an item may name, in rank order, each with its mark: code health first, unless README.md voids it, then README.md's goals in reading order. A void of anything else fails, and so does a docs/decisions.md that opts out of the comprehension check where README.md keeps code health, since the goal then has no signal."""
|
||||
"""Every goal in rank order, each with its mark: code health first, unless README.md voids it, then README.md's goals in reading order. A void of anything else fails, and so does a docs/decisions.md that opts out of the comprehension check where README.md keeps code health, since the goal then has no signal."""
|
||||
goals = readme_goals(readme)
|
||||
if isinstance(goals, Failure):
|
||||
return goals
|
||||
|
||||
Reference in New Issue
Block a user