def are_blocking_checks(checks, ignore_warnings):
    """
    Return True if checks are errors or unignored warnings.

    :arg dict checks: dictionary with a list of errors/warnings per library
    :arg bool ignore_warnings: ignores failed checks of type warning
    """
    has_errors = any(p.endswith('Errors') for p in checks)

    return (not ignore_warnings and checks) or has_errors