관리-도구
편집 파일: __init__.cpython-311.pyc
� �܋f� � �� � d dl Z d dlmZ d dlmZ n# e$ r d dlZY nw xY wd dlZd dlm Z d dl mZmZ d dl mZ d dlmZmZmZmZ dZdZd Zd ZdZdZd ZdZdZdZddefd�Z G d� de� � Z dS )� N)�Path)� FileFinder)�Location�Message)�AUTO_LOADED_PROFILES)�DEPRECATED_TOOL_NAMES�TOOLS�ToolBase�pyflakeszprofile-is-emptyzshould-be-listzunknown-settingz should-be-intzshould-be-boolz invalid-valuezinvalid-regexp� deprecatedzdeprecated-tool-code)�ProfileValidationToolT�with_deprecatedc �^ � t t � � }| r|t j � � z }|S �N)�listr r �keys)r �toolss �|/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/prospector/tools/profile_validator/__init__.py�_tool_namesr s. � ���K�K�E�� .� �&�+�-�-�-���L� c �N � e Zd ZdZdZdZeez ez Zd� Zd� Zde fd�Z defd �Zd S )r )�inherits�uses�ignorezignore-paths�ignore-patterns)zdoc-warningsz test-warnings� autodetect)� strictness�max-line-lengthz output-formatz output-targetzmember-warnings�pep8�python-targetsc �F � t t � � | _ d| _ d S )N� )�setr �to_check�ignore_codes)�selfs r �__init__zProfileValidationTool.__init__4 s � ��0�1�1�� �����r c � � |j j D ]}| j � |� � �|� d� � | _ d S )N�profile-validator)�config�profilesr$ �add�get_disabled_messagesr% )r&