/opt/cloudlinux/venv/lib/python3.11/site-packages/flake8/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/flake8/__pycache__/checker.cpython-311.pyc (27886B)
§
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 d„Z&dedeej' j( fd„Z)dededefd„Z*de%deeeeeef f fd„Z+dedej, deeef fd„Z-dS )!z$Checker Manager and Checker classes.é N)ÚAny)ÚDict)ÚList)ÚOptional)ÚTuple)Údefaults)Ú
exceptions)Ú processor)Úutils)Úexpand_paths)ÚCheckers)ÚLoadedPlugin)ÚStyleGuideManagerc óÞ — e Zd ZdZdededdfd„Zdd„Zdefd„Z d e
d
edefd„Zdde
ee
ddfd
„Zdeeef fd„Zdd„Zdd„Zdd„Zdde
ee
ddfd„Zdd„ZdS )Ú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_guideÚpluginsÚreturnNc ó — || _ |j | _ || _ | ¦ « | _ g | _ g | _ dddddœ| _ t t j
| j j | j j ¦ « ¦ « | _ dS )z Initialize our Manager instance.r )Úfilesú
logical linesúphysical linesÚtokensN)
r Úoptionsr Ú
_job_countÚjobsÚ
_all_checkersÚcheckersÚ
statisticsÚtupleÚ itertoolsÚchainÚexcludeÚextend_exclude)Úselfr r s ú`/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/flake8/checker.pyÚ__init__zManager.__init__@ s‡ € ð 'ˆÔØ"Ô*ˆŒØˆŒØ—O’OÑ%Ô%ˆŒ Ø02ˆÔØ+-ˆŒ
àØØØð
ð
ˆŒõ ÝŒO˜DœLÔ0°$´,Ô2MÑNÔNñ
ô
ˆŒˆˆó c óÆ — | j D ]1}t j D ]"}| j |xx |j | z
cc<