Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pylint/lint/__pycache__/base_options.cpython-39.pyc
Ðазад
a n�h�U � @ s� d Z ddlmZ ddlZddlZddlmZ ddlmZm Z ddl mZmZm Z mZmZmZmZmZmZmZmZmZmZmZmZ ddlmZ er�ddlmZmZ d d d�dd �Zdd d�dd�Z dS )zJFunctions that creates the basic options for the Run and PyLinter classes.� )�annotationsN)� TYPE_CHECKING)� constants� interfaces)�_DisableAction�_DoNothingAction� _EnableAction�_ErrorsOnlyModeAction�_FullDocumentationAction�_GenerateConfigFileAction�_GenerateRCFileAction�_ListCheckGroupsAction�_ListConfidenceLevelsAction�_ListExtensionsAction�_ListMessagesAction�_ListMessagesEnabledAction�_LongHelpAction�_MessageHelpAction�_OutputFormatAction)�Options)�PyLinter�Runr r )�linter�returnc # C sX ddddddgit jdd�fdd d dt�d�fd d�fddd g dd�fdddddd�fdddddd�fddtdd � d!d"d#d$d%| id&�fd'd(ddd)d#d*d+�fd,d-d.d#d/d0d1�fd2dddd3d#d4d+�fd5d6d7d8d9d�fd:d;dd<d=d�fd>d>d?tjd@dAdB�tj�� dC�dD�fdEtdFd � dd<dGd@dHd%| idI�fdJt dKd � d<ddLd@dMd%| idN�fdOd-d;dPd#dQdR�fdSdTdUdVdWdXdY�fdZddd(dd[d\�fd]dTd^d_d`d�fdaddbg dcd�fddddbg ded�fdfddddgd�fdhdid(djdkdl�fdmdid(djdndl�fdodpdqddrd�fdsddtd(dud�fdvt jdwdx� dydzd{d�fd|ddd}d~d�fdd(ddd�d�fd�d(ddd�d�fd�d(ddd�d�ffS )�z,Return the options used in a PyLinter class.�ignore�csvz<file>[,<file>...]Z black_listZ old_nameszIFiles or directories to be skipped. They should be base names, not paths.)�type�metavar�dest�kwargs�default�helpzignore-patternsZ regexp_csvz<pattern>[,<pattern>...]Z black_list_rez^\.#z�Files or directories matching the regular expression patterns are skipped. The regex matches against base names, not paths. The default value ignores Emacs file locks)r r r r r! zignore-pathsZregexp_paths_csva Add files or directories matching the regular expressions patterns to the ignore-list. The regex matches against paths and can be in Posix or Windows format. Because '\\' represents the directory delimiter on Windows systems, it can't be used as an escape character.)r r r r! � persistentTZynz<y or n>z,Pickle collected data for later comparisons.)r r r r! zload-pluginsz <modules>� ztList of plugins (as comma separated values of python module names) to load, usually to register additional checkers.z output-format�textc S s | S �Nr# )�xr# r# ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pylint/lint/base_options.py�<lambda>e � z&_make_linter_options.<locals>.<lambda>z<format>�fZReportsa Set the output format. Available formats are: 'text', 'parseable', 'colorized', 'json2' (improved json format), 'json' (old json format), msvs (visual studio) and 'github' (GitHub actions). You can also give a reporter class, e.g. mypackage.mymodule.MyReporterClass.r )r �action�callbackr �short�groupr! r ZreportsF�rz<Tells whether to display a full report or only the messages.)r r r r- r. r! Z evaluation�stringz<python_expression>zfmax(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10))ag Python expression which should return a score less than or equal to 10. You have access to the variables 'fatal', 'error', 'warning', 'refactor', 'convention', and 'info' which contain the number of messages in each category, as well as 'statement' which is the total number of statements analyzed. This score is used by the global evaluation report (RP0004).)r r r. r r! Zscore�szActivate the evaluation score.z fail-under� �floatz<score>zGSpecify a score threshold under which the program will exit with error.zfail-on� z <msg ids>z�Return non-zero exit code if any of these messages/categories are detected, even if score is above --fail-under value. Syntax same as enable. Messages specified are enabled, while categories only check already-enabled messages.Z confidencez<levels>zMessages controlz]Only show warnings with the listed confidence levels. Leave empty to show all. Valid levels: z, �.)r r r r. r! �enablec S s | S r% r# ��x1Zx2Zx3Zx4r# r# r'