
    7 f +                    `    d Z ddlmZ ddlZddlmZ ddlmZ ddZ G d	 d
          Z	ddZ
dS )z=Contains the logic for all of the default options for Flake8.    )annotationsN)defaults)OptionManagerreturnargparse.ArgumentParserc                    t          j        d          } |                     ddddd           |                     d	d
d           |                     ddg d           |                     dd
d           |                     dddd           |                     dd           |                     dd           | S )zRegister 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   countzPrint 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-fileNzRedirect report to a file.r   r   z--append-configappendzProvide 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.)r   r   r   z--configzPath to the config file that will be the authoritative config source. This will cause Flake8 to ignore all other configuration files.z
--isolated
store_truezIgnore 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    I/var/www/equiseq/venv/lib/python3.11/site-packages/flake8/main/options.pystage1_arg_parserr   
   sA    $e444F
     ,H     #	          .	          F    
 M    c                  *    e Zd ZdZd
dZddZddZd	S )JobsArgumentz&Type callback for the --jobs argument.argstrr   Nonec                    d| _         d| _        |dk    r	d| _         dS |                                rt          |          | _        dS t	          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)selfr   s     r   __init__zJobsArgument.__init__T   sh    
 &==DLLL[[]] 	c((DKKK,888  r   c                P    t          |           j         dt          |           dS )zRepresentation for debugging.())type__name__r   r&   s    r   __repr__zJobsArgument.__repr__d   s(    t**%66D		6666r   c                <    | j         rdnt          | j                  S )zFormat our JobsArgument class.r    )r!   r   r"   r-   s    r   __str__zJobsArgument.__str__h   s    ;vv3t{+;+;;r   N)r   r   r   r   )r   r   )r,   
__module____qualname____doc__r'   r.   r0    r   r   r   r   Q   sV        00    7 7 7 7< < < < < <r   r   option_managerr   r   c                l   | j         } |dddddd            |dd	d
d            |dddd            |ddd                    t          j                  dddd            |ddddddd            |dddddd            |ddd !            |d"d#d$dd%d&                    t	          | j                             d'(            |d)ddd*            |d+d,ddd-d                    t          j                   d./            |d0d,ddd1/            |d2ddd34            |d5t          d6t          j        dd78            |d9t          d6d:dd;8            |d<t          d6t          j	        dd=8            |d>d,ddd?/            |d@d,dddA/            |dBdCdddDE            |dFdddG            |dHdIdJdCdKL            |dMdddN            |dOddPQ            |dRdSd
dt          dTU            |dVdCdddWE            |dXdCddYZ            |d[dd\Q           d:S )]a  Register the default options on our OptionManager.

    The default options include:

    - ``-q``/``--quiet``
    - ``--color``
    - ``--count``
    - ``--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--quietr   r
   Tz>Report only file names, or nothing. This option is repeatable.)r   r   parse_from_configr   z--color)r    alwaysneverr    z;Whether to use color in output.  Defaults to `%(default)s`.)choicesr   r   z--countr   zGPrint total number of errors to standard output after all other output.)r   r7   r   z	--excludepatterns,zOComma-separated list of files or directories to exclude. (Default: %(default)s))metavarr   comma_separated_listr7   normalize_pathsr   z--extend-exclude zQComma-separated list of files or directories to add to the list of excluded ones.)r=   r   r7   r>   r?   r   z
--filenamez*.pyzcOnly check for filenames matching the patterns in this comma-separated list. (Default: %(default)s))r=   r   r7   r>   r   z--stdin-display-namestdinzThe 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   z1Format errors according to the chosen formatter (z, z) or a format string containing %%-style mapping keys (code, col, path, row, text). For example, ``--format=pylint`` or ``--format='%%(path)s %%(code)s'``. (Default: %(default)s))r=   r   r7   r   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=   r7   r>   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-ignoresa  A 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   r7   r   z--max-line-lengthnzPMaximum allowed line length for the entirety of this run. (Default: %(default)s))r+   r=   r   r7   r   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--selectzLimit the reported error codes to codes prefix-matched by this list.  You usually do not need to specify this option as the default includes all installed plugin codes.  For example, ``--select=E4,E51,W234``.z--extend-selectzAdd additional error codes to the default ``--select``.  You usually do not need to specify this option as the default includes all installed plugin codes.  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   r7   r   r   z--show-sourcez/Show the source generate each error or warning.z--no-show-sourcestore_falseshow_sourcezNegate --show-source)r   destr7   r   z--statisticszCount errors.z--exit-zeroz3Exit with status code "0" even if there are errors.)r   r   z-jz--jobszNumber 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   r7   r+   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sortedformatter_namesIGNOREr$   MAX_LINE_LENGTHINDENT_SIZEr   )r5   rH   s     r   register_default_optionsrP   m   s   <  *JJM    J+J	    J	    J)**!!	 	 	 	 J!	 	 	 	 J!1    J!    J&		&!?@@AA& & &     J	    J!6(/226 6 6
 
 
 
 J!F    J		 	 	 	 J(!    J!    J$K    J!5    J!<    J*    J>	    J#    J	    JB    J!
 
 
 
 J/    JC	    JF     r   )r   r   )r5   r   r   r   )r3   
__future__r   r   flake8r   flake8.options.managerr   r   r   rP   r4   r   r   <module>rT      s    C C " " " " " "        0 0 0 0 0 0D D D DN< < < < < < < <8_ _ _ _ _ _r   