Make chunk-preflight report space-indented code with no setting that says so, and narrow the tabs principle's override
CI / tests (pull_request) Has been cancelled

This commit is contained in:
2026-11-27 15:08:14 +01:00
parent 411819c38d
commit 83298bed3d
7 changed files with 181 additions and 3 deletions
+7 -1
View File
@@ -21,6 +21,11 @@ and prints that the release reviews and the cuts are the human's to call. It pri
finished on the branch of an open pull request that is not a draft, where the checkout holds
the plan. Where no item of the release can start and one awaits such a merge, it names those
pull requests and says the working loop stops there;
- where the project's tracked code (the files its language tooling covers, not Markdown, JSON or
YAML) has more space-indented than tab-indented lines, and neither an `.editorconfig` with
`indent_style` nor a formatter setting (`rustfmt.toml` `hard_tabs`, Prettier `useTabs`, Biome
`indentStyle`) says so, one line naming the technical principles' hard-tabs default and the two
ways out. It only reports;
- the next release and its first item that does not wait, the item loop-claude routes on, with its L
and E + I; with --item <ID>, the plan item of that ID instead, which loop-claude names in a window
named for an item. An item waits while it is marked question, while an item still in todo.md
@@ -93,6 +98,7 @@ from git_cli import epic_branch
from failure import Failure
from forge.commands import Forge, forge_of, Run, runner
from chunk_preflight.gathered import Gathered, ItemFacts, LeftWorktree, NamedPath, Ran, Worktree
from chunk_preflight.indentation import space_indented
from chunk_preflight.facts import JOINING_DETAILS, render
from project_config.main import located
from forge.pulls import merged_pull
@@ -165,7 +171,7 @@ def preflight(root: pathlib.Path, timeout: float, make: bool, item_id: int | Non
item = plan if isinstance(plan, NoItem) else item_facts(root, ref, plan, timeout, make, epic_branch_of(config))
# A `checkout:` path lands in the worktree the chunk works in.
made = located(str(item.worktree.path), pathlib.Path.home()) if isinstance(item, ItemFacts) and isinstance(item.worktree, Worktree) else config
return render(Gathered(ref, note, held.cut, item, plan_name(ref, outside), (config if isinstance(made, Failure) else made).places, outside is not None, config.texts, merges_unread=held.merges_unread, left=left_worktrees(root, forge_run) if config.merge == "human" else ()))
return render(Gathered(ref, note, held.cut, item, plan_name(ref, outside), (config if isinstance(made, Failure) else made).places, outside is not None, config.texts, merges_unread=held.merges_unread, left=left_worktrees(root, forge_run) if config.merge == "human" else (), indentation=space_indented(item.worktree.path if isinstance(item, ItemFacts) and isinstance(item.worktree, Worktree) else root, timeout)))
def epic_branch_of(config: ProjectConfig) -> str | None | Failure: