diff --git a/bin/larv_review/main.py b/bin/larv_review/main.py index 8c52019b..b6e8577b 100644 --- a/bin/larv_review/main.py +++ b/bin/larv_review/main.py @@ -62,15 +62,16 @@ Otherwise the ruling is the overall vote that leads each other vote by two or mo prints `Ruling:` and appends the ruling. record-scoring takes the scores file of a run needs-scoring-run calls, whose first line names no -`, against`, and the same item IDs, and exits 1 when they call no run: like any entry, a scoring -run moves the paired ruling's base. It appends the seats' scores and their means, rounded half up to two -decimals, prints the means and, when a mean is under the floor of {floor}, a line opening `Floor:` -naming each one. +`, against`, and the same item IDs, and exits 1 when they call no run: like any entry, a scoring run +moves the paired ruling's base. It appends the seats' scores and their means, rounded half up to +two decimals, prints the means and, when a mean is under the floor of {floor}, a line opening +`Floor:` naming each one. places prints the places seats found hard from the history's newest entry, by time, that is a -scoring run or holds scoring seats' places: in it and each later entry, every scoring seat's place, and each ruled place -that opens with a dimension, or Overall, its seat's vote counted as worse. Each entry's places come -under its heading, oldest first. With no such entry, it reads every ruling. +scoring run or holds scoring seats' places: in it and each later entry, every scoring seat's place, +and each ruled place that opens with a dimension, or Overall, its seat's vote counted as worse. +Each entry's places come under its heading, oldest first. With no such entry, it reads every +ruling. Each record is appended to the history, created when missing, under a heading of the current UTC time and the seats file's first line. Each commit that line names must be in the checkout. It exits 1 diff --git a/bin/larv_review/record.py b/bin/larv_review/record.py index 9287764a..04649a72 100644 --- a/bin/larv_review/record.py +++ b/bin/larv_review/record.py @@ -81,7 +81,7 @@ def show_places() -> Failure | None: history = history_file() if isinstance(history, Failure): return history - print((latest_places(history[1]) or "No places that seats found hard since the newest scoring run.").rstrip("\n")) + print((latest_places(history[1]) or "Seats found no places hard since the newest scoring run.").rstrip("\n")) return None diff --git a/bin/larv_review/test_larv_review.py b/bin/larv_review/test_larv_review.py index eb53d0b8..2c99066e 100644 --- a/bin/larv_review/test_larv_review.py +++ b/bin/larv_review/test_larv_review.py @@ -329,7 +329,7 @@ class LarvReviewTool(unittest.TestCase): self.assertEqual(entries(text)[0].scored_places, [Place("bin/a.py", "f")] * 4) def test_prints_the_places_seats_found_hard_since_the_newest_scoring_run(self): - self.assertEqual(self.run_tool("places").stdout, "No places that seats found hard since the newest scoring run.\n") + self.assertEqual(self.run_tool("places").stdout, "Seats found no places hard since the newest scoring run.\n") self.commit("Record a scoring run", {"docs/comprehension-history.md": appended("", SCORING + "\nJunior A, hardest first:\n\n- `bin/b.py:4` `h`: long\n")}) ran = self.run_tool("places") self.assertEqual((ran.returncode, ran.stdout), (0, "## 2026-10-08T12:00:00Z, PR #1 at aaaaaaa\n\nJunior A, hardest first:\n\n- `bin/b.py:4` `h`: long\n"), ran.stderr)