
    g                       d Z ddlmZ ddlmZ ddlmZ ddddd	d
ddddd
ZeD  ci c]  } | d c} Z G d dej                        Z
 G d de
      Z G d de
      Z G d de
      Z G d dej                        Zyc c} w )z$Default formatting class for Flake8.    )annotations)base)	Violationz[1mz[30mz[31mz[32mz[33mz[34mz[35mz[36mz[37mz[m)
boldblackredgreenyellowbluemagentacyanwhitereset c                  $    e Zd ZU dZded<   ddZy)SimpleFormatteray  Simple abstraction for Default and Pylint formatter commonality.

    Sub-classes of this need to define an ``error_format`` attribute in order
    to succeed. The ``format`` method relies on that attribute and expects the
    ``error_format`` string to use the old-style formatting strings with named
    parameters:

    * code
    * text
    * path
    * row
    * col

    strerror_formatc                    | j                   |j                  |j                  |j                  |j                  |j
                  d| j                  r	t        z  S t        z  S )zFormat and write error out.

        If an output filename is specified, write formatted errors to that
        file. Otherwise, print the formatted error to standard out.
        )codetextpathrowcol)	r   r   r   filenameline_numbercolumn_numbercolorCOLORS
COLORS_OFFselferrors     \/var/www/html/brdwt/brdwt/brdwtenv/lib/python3.12/site-packages/flake8/formatting/default.pyformatzSimpleFormatter.format(   sg       JJJJNN$$&&$
 v$
 
 	
 *4$
 
 	
    Nr#   r   returnz
str | None)__name__
__module____qualname____doc____annotations__r%    r&   r$   r   r      s     
r&   r   c                      e Zd ZdZdZddZy)DefaultzDefault formatter for Flake8.

    This also handles backwards compatibility for people specifying a custom
    format string.
    z%(bold)s%(path)s%(reset)s%(cyan)s:%(reset)s%(row)d%(cyan)s:%(reset)s%(col)d%(cyan)s:%(reset)s %(bold)s%(red)s%(code)s%(reset)s %(text)sc                    | j                   j                  j                         dk7  r| j                   j                  | _        yy)z!Check for a custom format string.defaultN)optionsr%   lowerr   r"   s    r$   
after_initzDefault.after_initE   s4    <<$$&)3 $ 3 3D 4r&   Nr(   None)r)   r*   r+   r,   r   r6   r.   r&   r$   r0   r0   8   s    	4 4r&   r0   c                      e Zd ZdZdZy)PylintzPylint formatter for Flake8.z%%(path)s:%(row)d: [%(code)s] %(text)sN)r)   r*   r+   r,   r   r.   r&   r$   r:   r:   K   s
    &:Lr&   r:   c                  8     e Zd ZdZdZddZddZd fdZ xZS )FilenameOnlyz&Only print filenames, e.g., flake8 -q.z%(path)sc                "    t               | _        y)z Initialize our set of filenames.N)setfilenames_already_printedr5   s    r$   r6   zFilenameOnly.after_initV   s    365&r&   c                     y)zDo not include the source code.Nr.   r!   s     r$   show_sourcezFilenameOnly.show_sourceZ       r&   c                    |j                   | j                  vr4| j                  j                  |j                          t        |   |      S y)z%Ensure we only print each error once.N)r   r?   addsuperr%   )r"   r#   	__class__s     r$   r%   zFilenameOnly.format]   s?    >>!?!??**..u~~>7>%((r&   r7   r'   )	r)   r*   r+   r,   r   r6   rA   r%   __classcell__)rF   s   @r$   r<   r<   Q   s    0L9. r&   r<   c                       e Zd ZdZddZddZy)NothingzPrint absolutely nothing.c                     y)zDo nothing.Nr.   r!   s     r$   r%   zNothing.formati   rB   r&   c                     y)zDo not print the source.Nr.   r!   s     r$   rA   zNothing.show_sourcel   rB   r&   Nr'   )r)   r*   r+   r,   r%   rA   r.   r&   r$   rI   rI   f   s    #'r&   rI   N)r,   
__future__r   flake8.formattingr   flake8.violationr   r   r    BaseFormatterr   r0   r:   r<   rI   )ks   0r$   <module>rQ      s    * " " & 
 $$ae$

d(( 
D4o 4&;_ ;? *'d   'g %s   
A?