K!Dn S ( d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl mZ ddl mZ ddl m Z ddl mZ ddl mZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ e eeeeeee f Z ej e Z!ej" hZ# G d d Z$ G d d Z%d dZ&dedeej' j( fdZ)dededefdZ*de%deeeeeef f fdZ+dedej, deeef fdZ-dS )!z$Checker Manager and Checker classes. N)Any)Dict)List)Optional)Tuple)defaults) exceptions) processor)utils)expand_paths)Checkers)LoadedPlugin)StyleGuideManagerc e Zd ZdZdededdfdZddZdefdZ d e d edefdZdde ee ddfd Zdeeef fdZddZddZddZdde ee ddfdZddZdS )ManageraR Manage the parallelism and checker instances for each plugin and file. This class will be responsible for the following: - Determining the parallelism of Flake8, e.g.: * Do we use :mod:`multiprocessing` or is it unavailable? * Do we automatically decide on the number of jobs to use or did the user provide that? - Falling back to a serial way of processing files if we run into an OSError related to :mod:`multiprocessing` - Organizing the results of each checker so we can group the output together and make our output deterministic. style_guidepluginsreturnNc || _ |j | _ || _ | | _ g | _ g | _ ddddd| _ t t j | j j | j j | _ dS )z Initialize our Manager instance.r )files logical linesphysical linestokensN) r optionsr _job_countjobs _all_checkerscheckers statisticstuple itertoolschainexcludeextend_exclude)selfr r s `/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/flake8/checker.py__init__zManager.__init__@ s '"*OO%% 02+- ODL0$,2MNN c | j D ]1}t j D ]"}| j |xx |j | z cc<