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: project_config.reporters.base.BaseColorReporter

Color reporter in JSON format.

_abc_impl = <_abc_data object>
data: t.Dict[str, t.Any]
errors: FilesErrors
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: project_config.reporters.base.BaseReporter

Black/white reporter in JSON format.

_abc_impl = <_abc_data object>
data: t.Dict[str, t.Any]
errors: FilesErrors
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.