Answer prose round 1: 1 🔴, 10 🟡 (1 misread); give rule-hook's 30 seconds, reword the drop rule, its comments and the changelog, note in this title that three readers picked the Drop item spelling 3-0, rename two tests; the fork 🔀 went to the security pass, which ruled it below its bar
This commit is contained in:
@@ -886,7 +886,7 @@ class TodoRankCheck(unittest.TestCase):
|
||||
def test_its_own_rank_todo_passing_passes(self):
|
||||
self.assertEqual(self.details(self.changed_plan(f"{self.folder}/clone", "")), [])
|
||||
|
||||
def test_its_own_rank_todo_failing_silently_is_named(self):
|
||||
def test_its_own_rank_todo_failing_silently_names_the_script_and_exit(self):
|
||||
checkout = self.changed_plan(f"{self.folder}/clone", "import sys\nsys.exit(3)\n")
|
||||
self.assertEqual(self.details(checkout), [f"{checkout}/bin/rank_todo.py --check failed with exit 3 and printed nothing"])
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ from release_plan import ranking
|
||||
|
||||
# The checkout this hook runs from: bin/rule_hook/ sits two folders below it.
|
||||
OWN = pathlib.Path(__file__).resolve().parents[2]
|
||||
# rank_todo.py --check takes about a tenth of a second; the hook must answer well within Claude Code's minute.
|
||||
# settings.json gives rule-hook 30 seconds; rank_todo.py --check takes about a tenth of one.
|
||||
OWN_CHECK_SECONDS = 20
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user