project_config.reporters.table module

Table reporters.

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

Bases: BaseColorReporter

Color reporter in table formats.

_abc_impl = <_abc._abc_data object>
generate_errors_report() str[source]

Generate an errors report in table format with colors.

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

Bases: BaseNoopFormattedReporter

Black/white reporter in table formats.

_abc_impl = <_abc._abc_data object>
generate_errors_report() str[source]

Generate an errors report in black/white table format.

project_config.reporters.table._common_generate_errors_report(errors: FilesErrors, fmt: str, format_key: FormatterDefinitionType, format_file: FormatterDefinitionType, format_error_message: FormatterDefinitionType, format_definition: FormatterDefinitionType, format_hint: FormatterDefinitionType) str[source]
project_config.reporters.table._common_generate_rows(errors: FilesErrors, format_file: FormatterDefinitionType, format_error_message: FormatterDefinitionType, format_definition: FormatterDefinitionType, format_hint: FormatterDefinitionType) list[list[str]][source]