Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/flake8/formatting/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/flake8/formatting/__pycache__/default.cpython-311.pyc

�

�܋f���dZddlmZddlmZddlmZddlmZdddd	d
ddd
ddd�
Zd�eD��Z	Gd�dej
��ZGd�de��ZGd�de��Z
Gd�de��ZGd�dej
��ZdS)z$Default formatting class for Flake8.�)�Optional)�Set)�base)�	Violationzzzzzzzzzz)
�bold�black�red�green�yellow�blue�magenta�cyan�white�resetc��i|]}|d��S)��)�.0�ks  �j/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/flake8/formatting/default.py�
<dictcomp>rs��
$�
$�
$��a��
$�
$�
$�c�:�eZdZUdZeed<dddeefd�ZdS)�SimpleFormatteraySimple 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

    �error_format�errorr�returnc�~�|j|j|j|j|j|jd�|jrtnt�zS)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)	rrr �filename�line_number�
column_number�color�COLORS�
COLORS_OFF��selfrs  r�formatzSimpleFormatter.format)sN��� ��J��J��N��$��&�$
�$
���3�v�v��
$
�
�	
rN)�__name__�
__module__�__qualname__�__doc__�str�__annotations__rr,rrrrrsT�������
�
�����

�K�

�H�S�M�

�

�

�

�

�

rrc��eZdZdZdZdd�ZdS)�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)srNc�p�|jj���dkr|jj|_dSdS)z!Check for a custom format string.�defaultN)�optionsr,�lowerr�r+s r�
after_initzDefault.after_initFs9���<��$�$�&�&�)�3�3� $�� 3�D����4�3r�rN)r-r.r/r0rr:rrrr4r49s<��������	4��4�4�4�4�4�4rr4c��eZdZdZdZdS)�PylintzPylint formatter for Flake8.z%%(path)s:%(row)d: [%(code)s] %(text)sN)r-r.r/r0rrrrr=r=Ls������&�&�:�L�L�Lrr=c�`��eZdZdZdZd
d�Zdddeefd�Zdddeef�fd	�Z	�xZ
S)�FilenameOnlyz&Only print filenames, e.g., flake8 -q.z%(path)srNc�,�t��|_dS)z Initialize our set of filenames.N)�set�filenames_already_printedr9s rr:zFilenameOnly.after_initWs��36�5�5��&�&�&rrrc��dS)zDo not include the source code.Nrr*s  r�show_sourcezFilenameOnly.show_source[����rc���|j|jvr@|j�|j��t���|��SdS)z%Ensure we only print each error once.N)r$rB�add�superr,)r+r�	__class__s  �rr,zFilenameOnly.format^sG����>��!?�?�?��*�.�.�u�~�>�>�>��7�7�>�>�%�(�(�(��4rr;)r-r.r/r0rr:rr1rDr,�
__classcell__)rIs@rr?r?Rs��������0�0��L�9�9�9�9�.��.��#��.�.�.�.��K��H�S�M����������rr?c�J�eZdZdZdddeefd�Zdddeefd�ZdS)�NothingzPrint absolutely nothing.rrrc��dS)zDo nothing.Nrr*s  rr,zNothing.formatjrErc��dS)zDo not print the source.Nrr*s  rrDzNothing.show_sourcemrErN)r-r.r/r0rr1r,rDrrrrLrLgsf������#�#��K��H�S�M�����'��'��#��'�'�'�'�'�'rrLN)r0�typingrr�flake8.formattingr�flake8.violationrr(r)�
BaseFormatterrr4r=r?rLrrr�<module>rSsw��*�*�������������"�"�"�"�"�"�&�&�&�&�&�&�
�
��
�����
�
�
�
��%�
$�V�
$�
$�
$�
�
�
�
�
�
�d�(�
�
�
�D4�4�4�4�4�o�4�4�4�&;�;�;�;�;�_�;�;�;������?����*'�'�'�'�'�d� �'�'�'�'�'r

Hacked By AnonymousFox1.0, Coded By AnonymousFox