ó
    áÅŸgò  ã                  óÂ   • S r SSKJr  SSKrSSKrSSKrSSKJr  SSK	J
r
  SSKJr  SSKJr  SSKJr  \R&                  " \5      rS	r " S
 S5      r " S S5      rSS jrg)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.
é    )ÚannotationsN)ÚAny)Úexpand_paths)Úbase)Úapplication)Ú
parse_args)Úget_style_guidec                  ó@   • \ rS rSrSrSS jr\S	S j5       rS
S jrSr	g)ÚReporté   a  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
c                ó†   • UR                   c   eXl        UR                   U l        U R                  R                  U l        g)z\Initialize the Report for the user.

.. warning:: This should not be instantiated by users.
N)ÚguideÚ_applicationÚ_style_guideÚstatsÚ_stats©Úselfr   s     ÚR/var/www/blue/EV-Temp_rev04/venv/lib/python3.13/site-packages/flake8/api/legacy.pyÚ__init__ÚReport.__init__'   s=   € ð
 × Ñ Ñ,Ð,Ð,Ø'ÔØ'×-Ñ-ˆÔØ×'Ñ'×-Ñ-ˆ�ó    c                ó.   • U R                   R                  $ )z"Return the total number of errors.)r   Úresult_count©r   s    r   Útotal_errorsÚReport.total_errors1   s   € ð × Ñ ×-Ñ-Ð-r   c                ó®   • U R                   R                  U5       Vs/ sH+  nUR                   SUR                   SUR                   3PM-     sn$ s  snf )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``
Ú )r   Ústatistics_forÚcountÚ
error_codeÚmessage)r   Ú	violationÚss      r   Úget_statisticsÚReport.get_statistics6   sU   € ð —[‘[×/Ñ/°	Ô:ó
á:�ð �w‰wˆi�q˜Ÿ™˜ a¨¯	©	 {Ó3Ù:ñ
ð 	
ùò 
s   ž1A)r   r   r   N©r   zapp.ApplicationÚreturnÚNone)r)   Úint)r$   Ústrr)   ú	list[str])
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Úpropertyr   r&   Ú__static_attributes__© r   r   r   r      s%   † ñô.ð ó.ó ð.÷
r   r   c                  ó¢   • \ rS rSrSrSS jr\SS j5       r\SS j5       rSSS jjr	SSS jjr
 S   SS	 jjr   S         SS
 jjrSrg)Ú
StyleGuideéD   a(  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
c                ó2   • Xl         UR                  U l        g)zInitialize our StyleGuide.N)r   Úfile_checker_managerÚ_file_checker_managerr   s     r   r   ÚStyleGuide.__init__S   s   € à'ÔØ%0×%EÑ%EˆÕ"r   c                ó`   • U R                   R                  c   eU R                   R                  $ )zeReturn application's options.

An instance of :class:`argparse.Namespace` containing parsed options.
)r   Úoptionsr   s    r   r>   ÚStyleGuide.optionsX   s.   € ð × Ñ ×(Ñ(Ñ4Ð4Ð4Ø× Ñ ×(Ñ(Ð(r   c                ót   • U R                   R                  c   eU R                   R                  R                  $ )z+Return the extra arguments passed as paths.)r   r>   Ú	filenamesr   s    r   ÚpathsÚStyleGuide.pathsa   s4   € ð × Ñ ×(Ñ(Ñ4Ð4Ð4Ø× Ñ ×(Ñ(×2Ñ2Ð2r   Nc                óú   • U R                   R                  c   eXR                   R                  l        U R                   R                  5         U R                   R	                  5         [        U R                   5      $ )zñ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>   rA   Ú
run_checksÚreport_errorsr   )r   rB   s     r   Úcheck_filesÚStyleGuide.check_filesg   sc   € ð × Ñ ×(Ñ(Ñ4Ð4Ð4Ø.3×Ñ×!Ñ!Ô+Ø×Ñ×$Ñ$Ô&Ø×Ñ×'Ñ'Ô)Ü�d×'Ñ'Ó(Ð(r   c                ó’   ^ • SU 4S jjnU" U5      =(       d0    USL=(       a%    U" [         R                  R                  X!5      5      $ )zê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.
c           	     ó¶   >• [        [        U /TR                  R                  TR                  R                  TR                  R
                  S95      nU(       + $ )N)rB   Ústdin_display_nameÚfilename_patternsÚexclude)Útupler   r>   rK   ÚfilenamerM   )ÚpathrB   r   s     €r   ÚexcludedÚ%StyleGuide.excluded.<locals>.excludedƒ   sK   ø€ ÜÜØ˜&Ø'+§|¡|×'FÑ'FØ&*§l¡l×&;Ñ&;Ø ŸL™L×0Ñ0ñ	óˆEð ”9Ðr   N)rP   r,   r)   Úbool)ÚosrP   Újoin)r   rO   ÚparentrQ   s   `   r   rQ   ÚStyleGuide.excludedx   s;   ø€ ÷		ñ ˜Ó!÷ 
Ø˜$Ð×K¡8¬B¯G©G¯L©L¸Ó,JÓ#Kð	
r   c                óP  • Uc  g[        U[        R                  5      (       d  [        S5      eU" U R                  5      U R
                  l        SU R
                  l        U R
                  R                  5         SU R
                  l        U R
                  R                  / 5        g)z*Set up a formatter for this run of Flake8.Nz<Report should be subclass of flake8.formatter.BaseFormatter.)
Ú
issubclassÚ	formatterÚBaseFormatterÚ
ValueErrorr>   r   r   Ú
make_guider:   Úmake_file_checker_manager)r   Úreporters     r   Úinit_reportÚStyleGuide.init_report’   s�   € ð
 ÑØÜ˜(¤I×$;Ñ$;×<Ñ<Üð2óð ñ '/¨t¯|©|Ó&<ˆ×ÑÔ#Ø"&ˆ×ÑÔð 	×Ñ×$Ñ$Ô&Ø15ˆ×ÑÔ.Ø×Ñ×3Ñ3°BÕ7r   c                ó&   • U R                  U/5      $ )as  Run collected checks on a single file.

This will check the file passed in and return a :class:`Report`
instance.

:param filename:
    The path to the file to check.
:param lines:
    Ignored since Flake8 3.0.
:param expected:
    Ignored since Flake8 3.0.
:param line_offset:
    Ignored since Flake8 3.0.
:returns:
    Object that mimic's Flake8 2.0's Reporter class.
)rG   )r   rO   ÚlinesÚexpectedÚline_offsets        r   Ú
input_fileÚStyleGuide.input_file§   s   € ð. ×Ñ  
Ó+Ð+r   )r   r;   r(   )r)   zargparse.Namespace)r)   r-   )N)rB   zlist[str] | Noner)   r   )rO   r,   rV   z
str | Noner)   rS   )r_   z$type[formatter.BaseFormatter] | Noner)   r*   )NNr   )
rO   r,   rc   ú
Any | Nonerd   rh   re   rh   r)   r   )r.   r/   r0   r1   r2   r   r3   r>   rB   rG   rQ   r`   rf   r4   r5   r   r   r7   r7   D   s    † ñôFð
 ó)ó ð)ð ó3ó ð3ö
)ö"
ð8 :>ð8à6ð8ð 
õ8ð0 !Ø#Ø"#ð,àð,ð ð,ð ð	,ð
  ð,ð 
÷,ð ,r   r7   c                 óœ  • [         R                  " 5       n[        / 5      u  Ul        Ul        UR                  nU R                  5        H  u  p4 [        X#5        [        X#U5        M     UR                  5         UR                  5         UR                  / 5        [        U5      $ ! [         a    [        R                  SU5         M€  f = f)z Provision a StyleGuide for use.

:param \*\*kwargs:
    Keyword arguments that provide some options for the StyleGuide.
:returns:
    An initialized StyleGuide
zCould not update option "%s")ÚappÚApplicationr   Úpluginsr>   ÚitemsÚgetattrÚsetattrÚAttributeErrorÚLOGÚerrorÚmake_formatterr]   r^   r7   )Úkwargsr   r>   ÚkeyÚvalues        r   r	   r	   Á   s­   € ô —/’/Ó#€KÜ/9¸"«~Ñ,€KÔ˜Ô,ð ×!Ñ!€GØ—l‘l–n‰
ˆð	;Ü�GÔ!Ü�G %Ö(ñ %ð ×ÑÔ Ø×ÑÔØ×)Ñ)¨"Ô-Ü�kÓ"Ð"øô ó 	;Ü�I‰IÐ4°c×:ð	;ús   ÁB'Â' CÃ
C)rt   r   r)   r7   )r2   Ú
__future__r   ÚargparseÚloggingÚos.pathrT   Útypingr   Úflake8.discover_filesr   Úflake8.formattingr   rZ   Úflake8.mainr   rj   Úflake8.options.parse_argsr   Ú	getLoggerr.   rq   Ú__all__r   r7   r	   r5   r   r   Ú<module>r‚      s[   ðñõ
 #ã Û Û Ý å .Ý /Ý *Ý 0à×Ò˜Ó!€ð €÷)
ñ )
÷Xz,ñ z,õz#r   