Sort the scheduler's imports and type the statuses list
CI / tests (pull_request) Successful in 3m22s

This commit is contained in:
Lilleman
2026-11-19 21:45:44 +01:00
parent 111cb9248e
commit 6d7c8b5c25
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -132,4 +132,6 @@ def load(home: pathlib.Path, ladder_file: pathlib.Path = SHIPPED) -> DoEpicConfi
assert clone_folder and env_file and isinstance(url, str) and isinstance(model, str) and isinstance(language, str) and isinstance(rule, str)
labels = values.get(LABEL_REPOS, {})
assert isinstance(labels, dict)
return DoEpicConfig(folder, url, env_file, clone_folder, language, model, rule, finish_of(values), types.MappingProxyType(labels), tuple(values.get(UNBLOCKING_STATUSES, ())), values.get(AUTOMATION_MOVES) is True)
statuses = values.get(UNBLOCKING_STATUSES, [])
assert isinstance(statuses, list)
return DoEpicConfig(folder, url, env_file, clone_folder, language, model, rule, finish_of(values), types.MappingProxyType(labels), tuple(statuses), values.get(AUTOMATION_MOVES) is True)