
    g                    t    d Z ddlmZ ddlZddlZddlmZ ddlmZ  ej                  e
      Z	 	 	 	 	 	 ddZy)z7Functions for constructing the requested report plugin.    )annotationsN)BaseFormatter)LoadedPluginc                    |j                   }|j                  dk(  rd}n|j                  dk\  rd}	 | |   }|j                  |      S # t        $ r t        j	                  d|       | d   }Y 7w xY w)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.
       zquiet-filename   zquiet-nothingz5%r is an unknown formatter.  Falling back to default.default)formatquietKeyErrorLOGwarningobj)	reportersoptionsformat_nameformat_plugins       Z/var/www/html/brdwt/brdwt/brdwtenv/lib/python3.12/site-packages/flake8/plugins/reporter.pymaker      s     ..K}}&	!	%-!+. W%%  -C	
 "),-s   A $A.-A.)r   zdict[str, LoadedPlugin]r   zargparse.Namespacereturnr   )__doc__
__future__r   argparseloggingflake8.formatting.baser   flake8.plugins.finderr   	getLogger__name__r   r        r   <module>r!      sH    = "   0 .g!&&&& &r    