§
    øyIfñ  ã                  ó   — 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d„ eD ¦   «         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dS )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Úresetc                ó   — i | ]}|d “ŒS )Ú © )Ú.0Úks     úM/var/www/piapp/venv/lib/python3.11/site-packages/flake8/formatting/default.pyú
<dictcomp>r      s   € Ð$Ð$Ð$˜ˆa�Ð$Ð$Ð$ó    c                  ó&   — e Zd ZU dZded<   d
d„Zd	S )Ú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_formatÚerrorr   Úreturnú
str | Nonec                ó~   — | j         |j        |j        |j        |j        |j        dœ| j        rt          nt          ¥z  S )z´Format 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©Úselfr   s     r   ÚformatzSimpleFormatter.format(   sN   € ð Ô Ø”JØ”JØ”NØÔ$ØÔ&ð$
ð $
ð œÐ3�vˆv­ð$
ñ 
ð 	
r   N©r   r   r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__r-   r   r   r   r   r      sB   € € € € € € ðð ð ÐÐÑð
ð 
ð 
ð 
ð 
ð 
r   r   c                  ó   — e Zd ZdZdZdd„ZdS )ÚDefaultzƒDefault 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)sr   ÚNonec                óp   — | j         j                             ¦   «         dk    r| j         j        | _        dS dS )z!Check for a custom format string.ÚdefaultN)Úoptionsr-   Úlowerr   ©r,   s    r   Ú
after_initzDefault.after_initE   s9   € àŒ<Ô×$Ò$Ñ&Ô&¨)Ò3Ð3Ø $¤Ô 3ˆDÔÐÐð 4Ð3r   N©r   r6   )r/   r0   r1   r2   r   r<   r   r   r   r5   r5   8   s<   € € € € € ðð ð	4ð ð4ð 4ð 4ð 4ð 4ð 4r   r5   c                  ó   — e Zd ZdZdZdS )ÚPylintzPylint formatter for Flake8.z%%(path)s:%(row)d: [%(code)s] %(text)sN)r/   r0   r1   r2   r   r   r   r   r?   r?   K   s   € € € € € Ø&Ð&à:€L€L€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)sr   r6   c                ó,   — t          ¦   «         | _        dS )z Initialize our set of filenames.N)ÚsetÚfilenames_already_printedr;   s    r   r<   zFilenameOnly.after_initV   s   € å36±5´5ˆÔ&Ð&Ð&r   r   r   r   c                ó   — dS )zDo not include the source code.Nr   r+   s     r   Úshow_sourcezFilenameOnly.show_sourceZ   ó   € € € r   c                ó¤   •— |j         | j        vr@| j                             |j         ¦  «         t          ¦   «                              |¦  «        S dS )z%Ensure we only print each error once.N)r%   rD   ÚaddÚsuperr-   )r,   r   Ú	__class__s     €r   r-   zFilenameOnly.format]   sG   ø€ àŒ> Ô!?Ð?Ð?ØÔ*×.Ò.¨u¬~Ñ>Ô>Ð>Ý‘7”7—>’> %Ñ(Ô(Ð(à�4r   r=   r.   )	r/   r0   r1   r2   r   r<   rF   r-   Ú__classcell__)rK   s   @r   rA   rA   Q   sp   ø€ € € € € Ø0Ð0à€Lð9ð 9ð 9ð 9ð.ð .ð .ð .ðð ð ð ð ð ð ð ð ð r   rA   c                  ó"   — e Zd ZdZd	d„Zd	d„ZdS )
ÚNothingzPrint absolutely nothing.r   r   r   r   c                ó   — dS )zDo nothing.Nr   r+   s     r   r-   zNothing.formati   rG   r   c                ó   — dS )zDo not print the source.Nr   r+   s     r   rF   zNothing.show_sourcel   rG   r   Nr.   )r/   r0   r1   r2   r-   rF   r   r   r   rN   rN   f   sB   € € € € € Ø#Ð#ðð ð ð ð'ð 'ð 'ð 'ð 'ð 'r   rN   N)r2   Ú
__future__r   Úflake8.formattingr   Úflake8.violationr   r)   r*   ÚBaseFormatterr   r5   r?   rA   rN   r   r   r   ú<module>rU      se  ðØ *Ð *Ø "Ð "Ð "Ð "Ð "Ð "à "Ð "Ð "Ð "Ð "Ð "Ø &Ð &Ð &Ð &Ð &Ð &ð ØØØØØØØØØð
ð 
€ð %Ð$˜VÐ$Ñ$Ô$€
ð
ð 
ð 
ð 
ð 
�dÔ(ñ 
ô 
ð 
ðD4ð 4ð 4ð 4ð 4ˆoñ 4ô 4ð 4ð&;ð ;ð ;ð ;ð ;ˆ_ñ ;ô ;ð ;ðð ð ð ð �?ñ ô ð ð*'ð 'ð 'ð 'ð 'ˆdÔ ñ 'ô 'ð 'ð 'ð 'r   