project_config.reporters package
Error reporters.
- exception project_config.reporters.InvalidNotBasedThirdPartyReporter(message: str)[source]
Bases:
ProjectConfigExceptionReporter not based on base reporter class.
All reporters must be based on the base reporter class :py::class:
project_config.reporters.base.BaseReporter.
- exception project_config.reporters.InvalidThirdPartyReporterName(reporter_id: str)[source]
Bases:
ProjectConfigExceptionA third party reporter can’t be loaded by his identifier.
- exception project_config.reporters.InvalidThirdPartyReportersModule(message: str)[source]
Bases:
ProjectConfigExceptionThird party reporters module is invalid.
Third party reporters module must expose a color and a black/white reporter.
- class project_config.reporters.ThirdPartyReporters[source]
Bases:
objectThird party reporters loader from entrypoints.
- instance: project_config.reporters.ThirdPartyReporters | None = None
- load(reporter_name: str) module[source]
Load a third party reporter.
- Parameters:
reporter_name (str) – Reporter module entrypoint name.
- exception project_config.reporters.UnparseableReporterError(reporter_id: str)[source]
Bases:
ProjectConfigExceptionReporter can’t be parsed.
- project_config.reporters.get_reporter(reporter_name: str, reporter_kwargs: dict[str, Any], color: bool | None, rootdir: str, only_hints: bool = False) Any[source]
Reporters factory.
- Parameters:
reporter_name (str) – Reporter identifier name.
reporter_kwargs (dict) – Optional arguments for reporter class.
color (bool) – Return the colorized version of the reporter, if is implemented, using the black/white version as a fallback.
rootdir (str) – Root directory of the project.
only_hints (bool) – If
True, only hints will be reported.
- project_config.reporters.parse_reporter_id(value: str) tuple[str, dict[str, Any]][source]
Parse a reporter identifier.
Returns the reporter name and the optional arguments for his class.
- Parameters:
value (str) – Reporter identifier.
Submodules
- project_config.reporters.base module
BaseColorReporterBaseColorReporter._abc_implBaseColorReporter._normalize_colors()BaseColorReporter.format_config_key()BaseColorReporter.format_config_value()BaseColorReporter.format_definition()BaseColorReporter.format_error_message()BaseColorReporter.format_file()BaseColorReporter.format_fixed()BaseColorReporter.format_hint()BaseColorReporter.format_key()BaseColorReporter.format_metachar()
BaseFormattedReporterBaseFormattedReporter._abc_implBaseFormattedReporter.format_config_key()BaseFormattedReporter.format_config_value()BaseFormattedReporter.format_definition()BaseFormattedReporter.format_error_message()BaseFormattedReporter.format_file()BaseFormattedReporter.format_fixed()BaseFormattedReporter.format_hint()BaseFormattedReporter.format_key()BaseFormattedReporter.format_metachar()
BaseNoopFormattedReporterBaseNoopFormattedReporter._abc_implBaseNoopFormattedReporter.format_config_key()BaseNoopFormattedReporter.format_config_value()BaseNoopFormattedReporter.format_definition()BaseNoopFormattedReporter.format_error_message()BaseNoopFormattedReporter.format_file()BaseNoopFormattedReporter.format_fixed()BaseNoopFormattedReporter.format_hint()BaseNoopFormattedReporter.format_key()BaseNoopFormattedReporter.format_metachar()
BaseReporterBaseReporter._abc_implBaseReporter.dataBaseReporter.errorsBaseReporter.exception_classBaseReporter.formatBaseReporter.generate_data_report()BaseReporter.generate_errors_report()BaseReporter.only_hintsBaseReporter.raise_errors()BaseReporter.report_error()BaseReporter.rootdirBaseReporter.success
InvalidColorsbold_color()colored_color_exists()self_format_noop()
- project_config.reporters.default module
- project_config.reporters.ghf_markdown module
- project_config.reporters.json_ module
- project_config.reporters.table module
- project_config.reporters.toml module
- project_config.reporters.yaml module