INNER CODE UNIT · Python

last

OpenChemistry/avogadrolibs · scripts/coverage_summary.py:85

    last = rows[-1]
    key = (last.get("date", ""), last.get("commit", ""), last.get("run_id", ""))
    by_module = {
        row["module"]: row
        for row in rows
        if (row.get("date", ""), row.get("commit", ""), row.get("run_id", "")) == key
    }
    return key, by_module


def to_int(value: str | None) -> int | None:
    try:
        return int(value)  # type: ignore[arg-type]
    except (TypeError, ValueError):
        return None


def previous_pct(row: dict[str, str] | None, covered: str, total: str):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…