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