6g&jdZddlZddlmZddlmZdejfdZGddZd eddfd Z dS) z=Contains the logic for all of the default options for Flake8.N)defaults) OptionManagerreturnctjd}|ddddd|d d d |d dgd|dd d |dddd|dd|dd|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 --verbosercountzPrint more information about what is happening in flake8. This option is repeatable and will increase verbosity each time it is repeated.defaultactionhelpz --output-fileNzRedirect report to a file.r r z--append-configappendzProvide 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_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)argparseArgumentParser add_argument)parsers /srv/buildsys-work-dir/castor/build_node/builder-2/WGSG1/unpkd_srcs/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/flake8/main/options.pystage1_arg_parserrsA $e 4 4 4F    ,H  #    .     F Mc:eZdZdZdeddfdZdefdZdefdZdS) JobsArgumentz&Type callback for the --jobs argument.argrNcd|_d|_|dkr d|_dS|rt||_dSt j|d)ztParse and validate the --jobs argument. :param arg: The argument passed by argparse for validation FautoTz must be 'auto' or an integer.N)is_auton_jobsisdigitintrArgumentTypeError)selfrs r__init__zJobsArgument.__init__Rsh   &==DLLL [[]] c((DKKK,888 rcPt|jdt|dS)zRepresentation for debugging.())type__name__strr"s r__repr__zJobsArgument.__repr__bs(t**%66D 6666rc<|jrdnt|jS)zFormat our JobsArgument class.r)rr)rr*s r__str__zJobsArgument.__str__fs;vv3t{+;+;;r)r( __module__ __qualname____doc__r)r#r+r-rrrrOsr00CD 7#7777<<<<<<9|d?d-ddd@dtjd/0|dAd-dddB0|dCdDdddEF|dGdddH|dIdJdKdDdLM|dNdddO|dPddQ|dRdSd dtdTU|dVdDdddWF|dXdDddYZ|d[dd\d;S)]aRegister 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)ralwaysneverrz;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.)r r4r z--diffzs(DEPRECATED) Report changes only within line number ranges in the unified diff provided on standard in by the user.)r r z --excludepatterns,zOComma-separated list of files or directories to exclude. (Default: %(default)s))metavarr comma_separated_listr4normalize_pathsr z--extend-excludezQComma-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-namestdinzThe 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--formatformatr 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--ignoreerrorszjComma-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-lengthnzPMaximum 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 *JJ  M J+ J J8 J@J)**!!    J!    J!1 J!J ? J J! 6(/22 6 6 6    J!F J    J (! J ! J $ K J! 6(/22 6 6 6    J! N    J* J >  J  # J  J B J  !    J / J C J Fr) r0rflake8rflake8.options.managerrrrrrLr1rrrOsCC000000D82DDDDN<<<<<<<<8[][t[[[[[[r