class documentation
class ColorizedTextReporter(TextReporter): (source)
Simple TextReporter that colorizes text output.
Method | __init__ |
Undocumented |
Method | handle |
Manage message of different types, and colorize output using ANSI escape codes. |
Constant | COLOR |
Undocumented |
Class Variable | name |
Name of the reporter. |
Instance Variable | color |
Undocumented |
Instance Variable | out |
Undocumented |
Method | _get |
Returns the message style as defined in self.color_mapping. |
Inherited from TextReporter
:
Method | on |
Set the format template to be used and check for unrecognized arguments. |
Method | write |
Convenience method to write a formatted message with class default template. |
Class Variable | extension |
Undocumented |
Class Variable | line |
Undocumented |
Method | _display |
Launch layouts display. |
Instance Variable | _fixed |
The output format template with any unrecognized arguments removed. |
Instance Variable | _modules |
Undocumented |
Instance Variable | _template |
Undocumented |
Inherited from BaseReporter
(via TextReporter
):
Method | display |
Hook for displaying the messages of the reporter. |
Method | display |
Display results encapsulated in the layout tree. |
Method | on |
Hook called when a module finished analyzing. |
Method | set |
Set output stream. |
Method | writeln |
Write a line in the output buffer. |
Instance Variable | linter |
Undocumented |
Instance Variable | messages |
Undocumented |
Instance Variable | path |
Undocumented |
Instance Variable | section |
Undocumented |
def __init__(self, output:
TextIO|None
= None, color_mapping: (ColorMappingDict|dict[ str, tuple[ str|None, str]])|None
= None):
(source)
¶
Undocumented
Undocumented
Value |
|