/opt/cloudlinux/venv/lib/python3.11/site-packages/flake8/api/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/flake8/api/__pycache__/legacy.cpython-311.pyc (10910B)
§
Ó00¦I3ã óò — d Z ddlZddlZddlZddlmZ ddlmZ ddlmZ ddlm Z ddl
Z
ddlmZ ddl
mZ dd lmZ dd
lmZ ej e¦ « ZdZ G d„ d
¦ « Z G d„ d¦ « Zdedefd„ZdS )zÒModule containing shims around Flake8 2.x behaviour.
Previously, users would import :func:`get_style_guide` from ``flake8.engine``.
In 3.0 we no longer have an "engine" module but we maintain the API from it.
é N)ÚAny)ÚList)ÚOptional)ÚType)Úexpand_paths)Úbase)Úapplication)Úconfig)Úget_style_guidec ód — e Zd ZdZdej ddfd„Zedefd„¦ « Z de
dee
fd„ZdS ) ÚReporta" Public facing object that mimic's Flake8 2.0's API.
.. note::
There are important changes in how this object behaves compared to
the object provided in Flake8 2.x.
.. warning::
This should not be instantiated by users.
.. versionchanged:: 3.0.0
r ÚreturnNc ó` — |j €J ‚|| _ |j | _ | j j | _ dS )zlInitialize the Report for the user.
.. warning:: This should not be instantiated by users.
N)ÚguideÚ_applicationÚ_style_guideÚstatsÚ_stats©Úselfr s úc/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/flake8/api/legacy.pyÚ__init__zReport.__init__) s7 € ð
Ô Ð,Ð,Ð,Ø'ˆÔØ'Ô-ˆÔØÔ'Ô-ˆŒˆˆó c ó — | j j S )z"Return the total number of errors.)r Úresult_count©r s r Útotal_errorszReport.total_errors3 s € ð Ô Ô-Ð-r Ú violationc óJ — d„ | j |¦ « D ¦ « S )zðGet the list of occurrences of a violation.
:returns:
List of occurrences of a violation formatted as:
{Count} {Error Code} {Message}, e.g.,
``8 E531 Some error message about the error``
c ó@ — g | ]}|j › d |j › d |j › �‘ŒS )ú )ÚcountÚ
error_codeÚmessage)Ú.0Úss r ú
z)Report.get_statistics..@ sD € ð
ð
ð
àð ŒwÐ3Ð3˜œÐ3Ð3¨¬ Ð3Ð3ð
ð
ð
r )r Ústatistics_for)r r s r Úget_statisticszReport.get_statistics8 s3 € ð
ð
à”[×/Ò/° Ñ:Ô:ð
ñ
ô
ð
r )
Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚappÚApplicationr ÚpropertyÚintr Ústrr r) © r r r
r
s� € € € € € ðð ð. C¤Oð .¸ð .ð .ð .ð .ð ð.˜cð .ð .ð .ñ „Xð.ð
¨ð
°°S´ ð
ð
ð
ð
ð
ð
r r
c óD — e Zd ZdZdej ddfd„Zedej fd„¦ « Z
edee fd„¦ « Z
ddeee defd „Zdd
edee defd„Z dd
eeej ddfd„Z dd
edee dee dee def
d„ZdS )Ú
StyleGuideaD Public facing object that mimic's Flake8 2.0's StyleGuide.
.. note::
There are important changes in how this object behaves compared to
the StyleGuide object provided in Flake8 2.x.
.. warning::
This object should not be instantiated directly by users.
.. versionchanged:: 3.0.0
r r Nc ó, — || _ |j | _ dS )zInitialize our StyleGuide.N)r Úfile_checker_managerÚ_file_checker_managerr s r r zStyleGuide.__init__U s € à'ˆÔØ%0Ô%EˆÔ"Ð"Ð"r c ó6 — | j j €J ‚| j j S )zuReturn application's options.
An instance of :class:`argparse.Namespace` containing parsed options.
)r Úoptionsr s r r: zStyleGuide.optionsZ s" € ð Ô Ô(Ð4Ð4Ð4ØÔ Ô(Ð(r c ó@ — | j j €J ‚| j j j S )z+Return the extra arguments passed as paths.)r r: Ú filenamesr s r ÚpathszStyleGuide.pathsc s% € ð Ô Ô(Ð4Ð4Ð4ØÔ Ô(Ô2Ð2r r= c óÌ — | j j €J ‚|| j j _ | j ¦ « | j ¦ « t | j ¦ « S )a) Run collected checks on the files provided.
This will check the files passed in and return a :class:`Report`
instance.
:param paths:
List of filenames (or paths) to check.
:returns:
Object that mimic's Flake8 2.0's Reporter class.
)r r: r<