in jbi/runner.py [0:0]
def groups2operation(steps: ActionSteps):
"""In the configuration files, the steps are grouped by `new`, `existing`,
and `comment`. Internally, this correspond to enums of `Operation`.
This helper remaps the list of steps.
"""
try:
by_operation = {
GROUP_TO_OPERATION[entry]: steps_list
for entry, steps_list in steps.model_dump().items()
}
except KeyError as err:
raise ValueError(f"Unsupported entry in `steps`: {err}") from err
return by_operation