AlkantarClanX12

Your IP : 3.138.114.140


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

�

�܋f�)��j�dZddlZddlmZddlmZdejfd�ZGd�d��Zd	eddfd
�Z	dS)z=Contains the logic for all of the default options for Flake8.�N)�defaults)�
OptionManager�returnc��tjd���}|�ddddd���|�d	d
d���|�d
dgd���|�dd
d���|�dddd���|�dd���|�dd���|S)z�Register the preliminary options on our OptionManager.

    The preliminary options include:

    - ``-v``/``--verbose``
    - ``--output-file``
    - ``--append-config``
    - ``--config``
    - ``--isolated``
    - ``--enable-extensions``
    F)�add_helpz-vz	--verboser�countz�Print more information about what is happening in flake8. This option is repeatable and will increase verbosity each time it is repeated.��default�action�helpz
--output-fileNzRedirect report to a file.�r
rz--append-config�appendz�Provide extra config files to parse in addition to the files found by Flake8 by default. These files are the last ones read and so they take the highest precedence when multiple files provide the same option.)rr
rz--configz�Path to the config file that will be the authoritative config source. This will cause Flake8 to ignore all other configuration files.z
--isolated�
store_truezIgnore all configuration files.z--enable-extensionszDEnable plugins and extensions that are otherwise disabled by default)rz--require-pluginsz7Require specific plugins to be installed before running)�argparse�ArgumentParser�add_argument)�parsers �d/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/flake8/main/options.py�stage1_arg_parserrsA���
$�e�
4�
4�
4�F�
�����������������,H�����������#�	��������������������
.�	�����������������
F�����
�M�c�:�eZdZdZdeddfd�Zdefd�Zdefd�ZdS)�JobsArgumentz&Type callback for the --jobs argument.�argrNc��d|_d|_|dkr	d|_dS|���rt|��|_dSt	j|�d����)ztParse and validate the --jobs argument.

        :param arg: The argument passed by argparse for validation
        F����autoTz must be 'auto' or an integer.N)�is_auto�n_jobs�isdigit�intr�ArgumentTypeError)�selfrs  r�__init__zJobsArgument.__init__Rsh��
�������&�=�=��D�L�L�L�
�[�[�]�]�	��c�(�(�D�K�K�K��,��8�8�8���
rc�P�t|��j�dt|���d�S)zRepresentation for debugging.�(�))�type�__name__�str�r"s r�__repr__zJobsArgument.__repr__bs(���t�*�*�%�6�6��D�	�	�6�6�6�6rc�<�|jrdnt|j��S)zFormat our JobsArgument class.r)rr)rr*s r�__str__zJobsArgument.__str__fs����;�v�v�3�t�{�+;�+;�;r)r(�
__module__�__qualname__�__doc__r)r#r+r-�rrrrOsr������0�0��C��D����� 7�#�7�7�7�7�<��<�<�<�<�<�<rr�option_managerc
�x�|j}|dddddd���|dd	d
d���|d
ddd���|ddd���|ddd�tj��dddd���|ddddddd���|dddddd� ��|d!d"d#�$��|d%d&d'dd(�)��|d*ddd+���|d,d-ddd.d�tj���d/��0��|d1d-ddd2�0��|d3ddd4�5��|d6t
d7tjdd8�9��|d:t
d7d;dd<�9��|d=t
d7tjdd>�9��|d?d-ddd@d�tj���d/��0��|dAd-dddB�0��|dCdDdddE�F��|dGdddH���|dIdJdKdDdL�M��|dNdddO���|dPddQ���|dRdSd
dtdT�U��|dVdDdddW�F��|dXdDddY�Z��|d[dd\���d;S)]a�Register the default options on our OptionManager.

    The default options include:

    - ``-q``/``--quiet``
    - ``--color``
    - ``--count``
    - ``--diff``
    - ``--exclude``
    - ``--extend-exclude``
    - ``--filename``
    - ``--format``
    - ``--hang-closing``
    - ``--ignore``
    - ``--extend-ignore``
    - ``--per-file-ignores``
    - ``--max-line-length``
    - ``--max-doc-length``
    - ``--indent-size``
    - ``--select``
    - ``--extend-select``
    - ``--disable-noqa``
    - ``--show-source``
    - ``--statistics``
    - ``--exit-zero``
    - ``-j``/``--jobs``
    - ``--tee``
    - ``--benchmark``
    - ``--bug-report``
    z-qz--quietrrTz>Report only file names, or nothing. This option is repeatable.)r
r�parse_from_configrz--color)r�always�neverrz;Whether to use color in output.  Defaults to `%(default)s`.)�choicesr
rz--countrzaPrint total number of errors to standard output and set the exit code to 1 if total is not empty.)rr4rz--diffzs(DEPRECATED) Report changes only within line number ranges in the unified diff provided on standard in by the user.)rrz	--exclude�patterns�,zOComma-separated list of files or directories to exclude. (Default: %(default)s))�metavarr
�comma_separated_listr4�normalize_pathsrz--extend-exclude�zQComma-separated list of files or directories to add to the list of excluded ones.)r:r
r4r;r<rz
--filenamez*.pyzcOnly check for filenames matching the patterns in this comma-separated list. (Default: %(default)s))r:r
r4r;rz--stdin-display-name�stdinz�The name used when reporting errors from code passed via stdin. This is useful for editors piping the file contents to flake8. (Default: %(default)s)r
z--format�formatr
z0Format errors according to the chosen formatter.)r:r
r4rz--hang-closingzOHang closing bracket instead of matching indentation of opening bracket's line.z--ignore�errorszjComma-separated list of error codes to ignore (or skip). For example, ``--ignore=E4,E51,W234``. (Default: r&)r:r4r;rz--extend-ignorezuComma-separated list of error codes to add to the list of ignored ones. For example, ``--extend-ignore=E4,E51,W234``.z--per-file-ignoresaA pairing of filenames and violation codes that defines which violations to ignore in a particular file. The filenames can be specified in a manner similar to the ``--exclude`` option and the violations work similarly to the ``--ignore`` and ``--select`` options.)r
r4rz--max-line-length�nzPMaximum allowed line length for the entirety of this run. (Default: %(default)s))r'r:r
r4rz--max-doc-lengthNzTMaximum allowed doc line length for the entirety of this run. (Default: %(default)s)z
--indent-sizez<Number of spaces used for indentation (Default: %(default)s)z--selectz`Comma-separated list of error codes to enable. For example, ``--select=E4,E51,W234``. (Default: z--extend-selectzvComma-separated list of error codes to add to the list of selected ones. For example, ``--extend-select=E4,E51,W234``.z--disable-noqaFzZDisable the effect of "# noqa". This will report errors on lines with "# noqa" at the end.)r
r4rrz
--show-sourcez/Show the source generate each error or warning.z--no-show-source�store_false�show_sourcezNegate --show-source)r�destr4rz--statisticsz
Count errors.z--exit-zeroz3Exit with status code "0" even if there are errors.z-jz--jobsz�Number of subprocesses to use to run checks in parallel. This is ignored on Windows. The default, "auto", will auto-detect the number of processors available to use. (Default: %(default)s))r
r4r'rz--teez Write to stdout and output-file.z--benchmarkz4Print benchmark information about this run of Flake8r	z--bug-reportz7Print information necessary when preparing a bug report)
�
add_option�joinr�EXCLUDE�IGNOREr �MAX_LINE_LENGTH�INDENT_SIZE�SELECTr)r2rEs  r�register_default_optionsrLks���> �*�J��J������
M�
�����J��+��
J�	�����J����8�	�����J���@������J�������)�*�*�!���!�	�	�	�	��J�����!���	�	�	�	��J�����!�1�
�����J���!������J�����
?������J�����	�����J����!�
6����(�/�2�2�
6�
6�
6�
�
�
�
��J����!�F������J�����		�	�	�	��J��
���(��!�
�����J��
����!�
�����J��
���$��
K�
�����J����!�
6����(�/�2�2�
6�
6�
6�
�
�
�
��J����!�
N�
	�	�	�	��J�����*������J����
>�	�����J���
��
#������J����
�	�����J���
B������J�����
�!�
�
�
�
��J�����
/������J����
C�	�����J���
F������r)
r0r�flake8r�flake8.options.managerrrrrrLr1rr�<module>rOs���C�C�����������0�0�0�0�0�0�D�8�2�D�D�D�D�N<�<�<�<�<�<�<�<�8[�]�[�t�[�[�[�[�[�[r