/opt/cloudlinux/venv/lib/python3.11/site-packages/flake8/api/__pycache__
NameSizeModeActions
legacy.cpython-311.pyc109100644editdlrm
__init__.cpython-311.pyc4310644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/flake8/api/__pycache__/legacy.cpython-311.pyc (10910B)
§ Ó00¦I3ãóò—dZddlZddlZddlZddlmZddlmZddlmZddlm Z ddl Z ddl m Z ddl mZdd lmZdd lmZeje¦«Zd ZGd „d ¦«ZGd„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—eZdZdZdejddfd„Zedefd„¦«Z de de e fd„Z dS) Ú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|_|jj|_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ó—|jjS)z"Return the total number of errors.)rÚ result_count©rs rÚ total_errorszReport.total_errors3s€ðÔ Ô-Ð-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)rrs rÚget_statisticszReport.get_statistics8s3€ð ð à”[×/Ò/° Ñ:Ô:ð ñ ô ð r) Ú__name__Ú __module__Ú __qualname__Ú__doc__ÚappÚ ApplicationrÚpropertyÚintrÚstrrr)©rrr r s�€€€€€ð ð ð. C¤Oð.¸ð.ð.ð.ð.ðð.˜cð.ð.ð.ñ„Xð.ð  ¨ð  °°S´ ð  ð  ð  ð  ð  ð  rr c óD—eZdZdZdejddfd„Zedej fd„¦«Z ede e fd„¦«Z ddee e defd „Zdd e d ee defd „Z dd eeejddfd„Z dd e deedeedeedef d„ZdS)Ú StyleGuideaDPublic 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 rNcó,—||_|j|_dS)zInitialize our StyleGuide.N)rÚfile_checker_managerÚ_file_checker_managerrs rrzStyleGuide.__init__Us€à'ˆÔØ%0Ô%EˆÔ"Ð"Ð"rcó6—|jj€J‚|jjS)zuReturn application's options. An instance of :class:`argparse.Namespace` containing parsed options. )rÚoptionsrs rr:zStyleGuide.optionsZs"€ð Ô Ô(Ð4Ð4Ð4ØÔ Ô(Ð(rcó@—|jj€J‚|jjjS)z+Return the extra arguments passed as paths.)rr:Ú filenamesrs rÚpathszStyleGuide.pathscs%€ðÔ Ô(Ð4Ð4Ð4ØÔ Ô(Ô2Ð2rr=cóÌ—|jj€J‚||jj_|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. )rr:r<Ú run_checksÚ report_errorsr )rr=s rÚ check_fileszStyleGuide.check_filesis_€ðÔ Ô(Ð4Ð4Ð4Ø.3ˆÔÔ!Ô+Ø Ô×$Ò$Ñ&Ô&Ð&Ø Ô×'Ò'Ñ)Ô)Ð)Ý�dÔ'Ñ(Ô(Ð(rÚfilenameÚparentc󜇗dtdtfˆfd„ }||¦«p,|duo(|tj ||¦«¦«S)a"Determine if a file is excluded. :param filename: Path to the file to check if it is excluded. :param parent: Name of the parent directory containing the file. :returns: True if the filename is excluded, False otherwise. Úpathrc óž•—tt|g‰jj‰jj‰jj‰jj¬¦«¦«}| S)N)r=Ústdin_display_nameÚfilename_patternsÚexcludeÚis_running_from_diff)Útuplerr:rGrBrIÚdiff)rEr=rs €rÚexcludedz%StyleGuide.excluded..excluded…sSø€ÝÝØ˜&Ø'+¤|Ô'FØ&*¤lÔ&;Ø œLÔ0Ø)-¬Ô):ð ñôñôˆEð�9Ð rN)r2ÚboolÚosrEÚjoin)rrBrCrMs` rrMzStyleGuide.excludedzsoø€ð �3ð ¥4ð ð ð ð ð ð ðˆx˜Ñ!Ô!ð Ø ˜$Ð Ð K 8 8­B¬G¯LªL¸ÀÑ,JÔ,JÑ#KÔ#Kð rÚreportercó(—|€dSt|tj¦«std¦«‚||j¦«|j_d|j_|j ¦«d|j_|j  ¦«dS)z*Set up a formatter for this run of Flake8.Nzr‡sdðððð €€€Ø€€€Ø€€€ØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐà € € € Ø.Ð.Ð.Ð.Ð.Ð.Ø/Ð/Ð/Ð/Ð/Ð/Ø*Ð*Ð*Ð*Ð*Ð*Ø!Ð!Ð!Ð!Ð!Ð!à€gÔ˜Ñ!Ô!€ð €ð) ð) ð) ð) ð) ñ) ô) ð) ðX{,ð{,ð{,ð{,ð{,ñ{,ô{,ð{,ð|'#˜cð'# jð'#ð'#ð'#ð'#ð'#ð'#r