Pick the chunks that may run at once by predicted parts, and record each prediction beside what the merged chunk touched
CI / tests (pull_request) Successful in 2m47s

This commit is contained in:
2026-11-15 02:29:38 +01:00
parent 06e4570e2e
commit 3ea3d5427e
21 changed files with 866 additions and 7 deletions
+8 -1
View File
@@ -7,7 +7,7 @@ import typing
from failure import Failure
from git_cli.git_repo import file_at, git, Git
from project_config.settings import ProjectConfig
from project_config.settings import ProjectConfig, TOUCH_PREDICTIONS
from text_files.file_writes import replace_file
# The settings in a project's config that each name a record.
@@ -68,6 +68,13 @@ def store(config: ProjectConfig, record: str) -> RecordStore:
return FileStore(config.paths[record], config.tracked(record))
def touch_predictions_store(config: ProjectConfig) -> RecordStore | None:
"""The store of the touch-predictions record, the one record a config may leave out; None where it does."""
if TOUCH_PREDICTIONS not in config.paths:
return None
return FileStore(config.paths[TOUCH_PREDICTIONS], config.tracked(TOUCH_PREDICTIONS))
def goals_store(config: ProjectConfig) -> RecordStore:
"""The store config names for the goals file, which holds ## Goals and ## Audience: a markdown file, or a Jira epic's description, which the store only reads."""
if config.goals_epic is None: