Results

Results(
    package_name,
    package_path,
    groups=list(),
    package_version=None,
    profile=None,
    error_on=Severity.ERROR,
    timestamp=None,
    fixture_errors=list(),
)

Aggregated results for all check groups.

Attributes: package_name: Name of the package being checked package_path: Path to the package groups: List of GroupResult instances package_version: Package version string (optional) profile: Profile name used for the check run (optional) error_on: Minimum severity that causes exit code 1 (default: ERROR) timestamp: ISO timestamp of the check run (optional) fixture_errors: List of fixture errors that occurred (optional)

Attributes

Name Description
all_results Flattened list of all results across all groups.
errored Total count of ERRORED results across all groups.
exit_code Compute exit code based on results and error_on setting.
failed Total count of FAILED results across all groups.
notes Total count of FAILED results with NOTE severity.
passed Total count of PASSED results across all groups.
skipped Total count of SKIPPED results across all groups.
total Total count of results that count toward total.
warnings Total count of FAILED results with WARNING severity.

Methods

Name Description
to_json Convert results to JSON-serializable dictionary.

to_json

Results.to_json()

Convert results to JSON-serializable dictionary.

Returns: Dictionary with version, package info, summary, and groups