def parse_incompatibility_allowlist()

in mozilla_schema_generator/validate_bigquery.py [0:0]


def parse_incompatibility_allowlist(allowlist: Path) -> list:
    res = []
    if not allowlist or not allowlist.exists():
        return res
    lines = [line.strip() for line in allowlist.read_text().split("\n")]
    for line in lines:
        if not line or line.startswith("#"):
            continue
        res.append(line)
    return res