# -*- mode: python -*-

from flowmetal import workflow


def ingest():
    return {}


def analyze(data):
    return data.keys()


def check(keys) -> bool:
    return len(keys) > 0


def report(keys):
    print(keys)


@workflow
def main():
    data = ingest()
    data = analyze(data)
    if check(data):
        report(data)
    else:
        raise ValueError(report(data))
