Answer stability round 1: 1 🔴, 6 🟡 (0 misread); say what a plan outside the checkout leaves undone in scoring-run-owed, the release standing and rank_todo.py
This commit is contained in:
@@ -26,8 +26,9 @@ def todo_breaches(directory: str, own: pathlib.Path = OWN) -> list[Breach]:
|
||||
return []
|
||||
config = located(top, pathlib.Path.home(), functools.partial(git, guarded=True))
|
||||
if isinstance(config, Failure):
|
||||
# A checkout with a todo.md and no config is one whose config is still to write.
|
||||
return [Breach("todo-rank-check", config.reason, top)] if (pathlib.Path(top) / "todo.md").is_file() else []
|
||||
# A checkout whose todo.md changes with no config is one whose config is still to write. An unchanged todo.md may be a third party's, whose clone needs no config.
|
||||
unconfigured = pathlib.Path(top) / "todo.md"
|
||||
return [Breach("todo-rank-check", config.reason, top)] if unconfigured.is_file() and changed(top, unconfigured, "todo.md") else []
|
||||
todo, tracked = config.paths["plan"], config.tracked("plan")
|
||||
# A plan outside the checkout has no commit to differ from, so it is checked on every call.
|
||||
if not todo.is_file() or (tracked is not None and not changed(top, todo, tracked)):
|
||||
|
||||
Reference in New Issue
Block a user