Sort the scheduler's imports and type the statuses list
CI / tests (pull_request) Successful in 3m22s
CI / tests (pull_request) Successful in 3m22s
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -10,8 +10,8 @@ from chunk_driver.claims import CHUNK_FLAG, epic_chunks, HANDED, loop_chunks, pr
|
||||
from do_epic.backend.protocol import EpicIssue
|
||||
from failure import Failure
|
||||
from do_epic.split import finished, is_split, SPLIT_LABEL
|
||||
from text_files.markdown_text import listed
|
||||
from do_epic.repo_pick import HumanTask, LabelRepos, Pick, recorded, Repo
|
||||
from text_files.markdown_text import listed
|
||||
from project_config.settings import PARALLEL_CHUNKS
|
||||
from do_epic.parked import parked_chunks
|
||||
from chunk_pr.approval import PARKS
|
||||
|
||||
Reference in New Issue
Block a user