관리-도구
편집 파일: application.cpython-311.pyc
� �܋f�2 � �X � d Z ddlZddlZddlZddlZddlZddlmZ ddlmZ ddlm Z ddlm Z ddlmZ ddlmZ ddl Z dd l mZ dd l mZ ddl mZ ddl mZ dd l mZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ej e � � Z! G d� d� � Z"dS )z3Module containing the application logic for Flake8.� N)�Dict)�List)�Optional)�Sequence)�Set)�Tuple)�checker)�defaults)� exceptions)�style_guide)�utils)� BaseFormatter)�debug)�options)� aggregator)�config)�manager)�finder)�reporterc �p � e Zd ZdZdd�Zdee deej e e f fd�Zdefd�Z dej d ed ee dee ddf d�Zdd �Zdej d ede e ddfd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdee ddfd�Zdd�Zdee ddfd�Zdee ddfd�ZdS )�Applicationz&Abstract our application into a class.�returnNc � � t j � � | _ d| _ t j � � | _ d| _ d| _ d| _ d| _ d| _ d| _ d| _ d| _ d| _ i | _ dS )zInitialize our application.Nr F)�time� start_time�end_timer �stage1_arg_parser�prelim_arg_parser�option_manager�plugins� formatter�guide�file_checker_manager�result_count�total_result_count�catastrophic_failure�parsed_diff��selfs �h/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/flake8/main/application.py�__init__zApplication.__init__$ s� � � �)�+�+���)-�� � ")�!:�!<�!<��� @D���15���26��� ?C�� � @D��!� 6:��� ��� #$��� %*��!� 13����� �argvc � � | j � |� � \ }}|j r|� d|j f� � ||fS )a% Get preliminary options from the CLI, pre-plugin-loading. We need to know the values of a few standard options so that we can locate configuration files and configure logging. Since plugins aren't loaded yet, there may be some as-yet-unknown options; we ignore those for now, they'll be parsed later when we do real option parsing. :param argv: Command-line arguments passed in directly. :returns: Populated namespace and list of remaining argument strings. z --output-file)r �parse_known_args�output_file�extend)r) r- �args�rests r* �parse_preliminary_optionsz%Application.parse_preliminary_optionsK sO � �"