flakeheaven.formatters._grouped¶
- class flakeheaven.formatters._grouped.GroupedFormatter(options: argparse.Namespace)[source]¶
Bases:
flakeheaven.formatters._colored.ColoredFormatterCopied and modified formatter from wemake-python-styleguide. It’s named not wemake to avoid conflicts with original formatter.
Initialize with the options parsed from config and cli.
This also calls a hook,
after_init(), so subclasses do not need to call super to call this method.- Parameters
options (
argparse.Namespace) – User specified configuration parsed from both configuration files and the command-line interface.
- format(error: flake8.style_guide.Violation) str[source]¶
Called to format each individual
flake8.style_guide.Violation.
- handle(error: flake8.style_guide.Violation) None[source]¶
Processes each
flake8.style_guide.Violationto print it and all related.
- output_fd: Optional[IO[str]]¶