Keep an item the human says to keep, marked owner

This commit was merged in pull request #277.
This commit is contained in:
2026-10-15 19:28:05 +02:00
parent f705fa626f
commit 7cce6e7ae1
5 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ A valid todo.md; ## Details and each item's detail are optional:
- The goal weights list README.md's numbered goals in order, a sub-goal such as 1.1 included.
- An item's R, S, C, A and G are whole numbers from 1 to 10; Goals lists goal numbers, comma separated.
C, how hard the change is to get right, stays out of the formula.
- An item's Exempt cell is empty, or names why the bar does not apply: decision, defect,
- An item's Exempt cell is empty, or names why the bar does not apply: decision, defect, owner,
principle, question or security. An item docs/decisions.md cites as "`todo.md` item N" must be
exempt, and a row marked decision must be cited there.
- An item's Item cell is one bold tagline; its detail, if any, sits under its ID in ## Details.
+1
View File
@@ -82,6 +82,7 @@ class Rank(unittest.TestCase):
ranked = self.ranked(TODO.replace("`Bar = 9`", "`Bar = 11`"))
self.assertEqual(ranked.under_bar, ["item 2 scores 10.3, under the bar 11; delete it and any item that needs it, or mark it with a reason the bar does not apply"])
self.assertEqual(self.ranked(ranked.text.replace("| 2 | 0.1.0 | |", "| 2 | 0.1.0 | principle |")).under_bar, [])
self.assertEqual(self.ranked(ranked.text.replace("| 2 | 0.1.0 | |", "| 2 | 0.1.0 | owner |")).under_bar, [])
def test_reads_goals_and_sub_goals_in_reading_order(self):
self.assertEqual(rank_todo.readme_goals(README), ["1", "2", "2.1"])
+1 -1
View File
@@ -5,7 +5,7 @@ from failure import Failure
# Each of R, S, C, A and G runs from 1 to TOP_SCORE.
TOP_SCORE = 10
EXEMPTIONS = ("", "decision", "defect", "principle", "question", "security")
EXEMPTIONS = ("", "decision", "defect", "owner", "principle", "question", "security")
COLUMNS = ("ID", "Release", "Exempt", "Item", "R", "S", "C", "A", "G", "Goals", "Score")
ITEMS_HEADER = "| " + " | ".join(COLUMNS) + " |"
# Tables in git history from before C joined lack it; items() still parses them, though rank_todo refuses one in a checkout.