project_config.reporters.json_ module

JSON reporters.

class project_config.reporters.json_.JsonColorReporter(*args: Any, colors: Optional[dict[str, str]] = None, **kwargs: Any)[source]

Bases: BaseColorReporter

Color reporter in JSON format.

_abc_impl = <_abc._abc_data object>
generate_data_report(data_key: str, data: dict[str, Any]) str[source]

Generate data report in JSON format with colors.

generate_errors_report() str[source]

Generate an errors report in JSON format with colors.

class project_config.reporters.json_.JsonReporter(rootdir: str, fmt: Optional[str] = None, only_hints: bool = False)[source]

Bases: BaseReporter

Black/white reporter in JSON format.

_abc_impl = <_abc._abc_data object>
generate_data_report(_data_key: str, data: dict[str, Any]) str[source]

Generate a data report in black/white JSON format.

generate_errors_report() str[source]

Generate an errors report in black/white JSON format.