?9 7 d Z ddlZddlZddlmZ ddlmZ ddlmZ ej e
Zdeeef dej
defd ZdS )
z6Functions for construcing the requested report plugin. N)Dict)
BaseFormatter)LoadedPlugin reportersoptionsreturnc |j }|j dk rd}n
|j dk rd} | | }n3# t $ r& t d| | d }Y nw xY w| | S )a Make the formatter from the requested user options.
- if :option:`flake8 --quiet` is specified, return the ``quiet-filename``
formatter.
- if :option:`flake8 --quiet` is specified at least twice, return the
``quiet-nothing`` formatter.
- otherwise attempt to return the formatter by name.
- failing that, assume it is a format string and return the ``default``
formatter.
zquiet-filename z
quiet-nothingz5%r is an unknown formatter. Falling back to default.default)formatquietKeyErrorLOGwarningobj)r r format_name
format_plugins i/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/flake8/plugins/reporter.pymaker s .K}& ! %-!+.
- - -C
"),
- W%%%s - -AA)__doc__argparseloggingtypingr flake8.formatting.baser flake8.plugins.finderr getLogger__name__r str Namespacer r