§ |<ˆj ã ó —dZddlmZddlmZddlmZddlmZdddd d d d d dddœ Zd„eD¦«Z Gd„dej ¦«Z Gd„de ¦«Z Gd„de ¦«Z Gd„de ¦«ZGd„dej ¦«ZdS)z$Default formatting class for Flake8.é)ÚOptional)ÚSet)Úbase)Ú Violationzzzzzzzzzz) ÚboldÚblackÚredÚgreenÚyellowÚblueÚmagentaÚcyanÚwhiteÚresetcó—i|]}|d“ŒS)Ú©)Ú.0Úks úk/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/flake8/formatting/default.pyú rs€Ð $Ð $Ð $˜ˆa�Ð $Ð $Ð $ócó:—eZdZUdZeed<dddeefd„ZdS)ÚSimpleFormatteraySimple abstraction for Default and Pylint formatter commonality. Sub-classes of this need to define an ``error_format`` attribute in order to succeed. The ``format`` method relies on that attribute and expects the ``error_format`` string to use the old-style formatting strings with named parameters: * code * text * path * row * col Ú error_formatÚerrorrÚreturncó~—|j|j|j|j|j|jdœ|jrtnt¥zS)z´Format and write error out. If an output filename is specified, write formatted errors to that file. Otherwise, print the formatted error to standard out. )ÚcodeÚtextÚpathÚrowÚcol) rrr ÚfilenameÚ line_numberÚ column_numberÚcolorÚCOLORSÚ COLORS_OFF©Úselfrs rÚformatzSimpleFormatter.format)sN€ð Ô Ø”JØ”JØ”NØÔ$ØÔ&ð $ ð$ ð œÐ3�vˆv­ð $ ñ ð rN)Ú__name__Ú __module__Ú __qualname__Ú__doc__ÚstrÚ__annotations__rr,rrrrrsT€€€€€€ð ð ðÐÐÑð  ˜Kð  ¨H°S¬Mð  ð  ð  ð  ð  ð  rrcó—eZdZdZdZdd„ZdS)ÚDefaultzƒDefault formatter for Flake8. This also handles backwards compatibility for people specifying a custom format string. z‡%(bold)s%(path)s%(reset)s%(cyan)s:%(reset)s%(row)d%(cyan)s:%(reset)s%(col)d%(cyan)s:%(reset)s %(bold)s%(red)s%(code)s%(reset)s %(text)srNcóp—|jj ¦«dkr|jj|_dSdS)z!Check for a custom format string.ÚdefaultN)Úoptionsr,Úlowerr©r+s rÚ after_initzDefault.after_initFs9€à Œ<Ô × $Ò $Ñ &Ô &¨)Ò 3Ð 3Ø $¤ Ô 3ˆDÔ Ð Ð ð 4Ð 3r©rN)r-r.r/r0rr:rrrr4r49s<€€€€€ððð 4ðð 4ð4ð4ð4ð4ð4rr4có—eZdZdZdZdS)ÚPylintzPylint formatter for Flake8.z%%(path)s:%(row)d: [%(code)s] %(text)sN)r-r.r/r0rrrrr=r=Ls€€€€€Ø&Ð&à:€L€L€Lrr=có`‡—eZdZdZdZd d„Zdddeefd„Zdddeefˆfd „ Z ˆxZ S) Ú FilenameOnlyz&Only print filenames, e.g., flake8 -q.z%(path)srNcó,—t¦«|_dS)z Initialize our set of filenames.N)ÚsetÚfilenames_already_printedr9s rr:zFilenameOnly.after_initWs€å36±5´5ˆÔ&Ð&Ð&rrrcó—dS)zDo not include the source code.Nrr*s rÚ show_sourcezFilenameOnly.show_source[ó€€€rc󤕗|j|jvr@|j |j¦«t¦« |¦«SdS)z%Ensure we only print each error once.N)r$rBÚaddÚsuperr,)r+rÚ __class__s €rr,zFilenameOnly.format^sGø€à Œ> Ô!?Ð ?Ð ?Ø Ô *× .Ò .¨u¬~Ñ >Ô >Ð >Ý‘7”7—>’> %Ñ(Ô(Ð (à�4rr;) r-r.r/r0rr:rr1rDr,Ú __classcell__)rIs@rr?r?Rs”ø€€€€€Ø0Ð0à€Lð9ð9ð9ð9ð. ð.°¸#´ð.ð.ð.ð.ð˜Kð¨H°S¬Mððððððððððrr?cóJ—eZdZdZdddeefd„Zdddeefd„ZdS)ÚNothingzPrint absolutely nothing.rrrcó—dS)z Do nothing.Nrr*s rr,zNothing.formatjrErcó—dS)zDo not print the source.Nrr*s rrDzNothing.show_sourcemrErN)r-r.r/r0rr1r,rDrrrrLrLgsf€€€€€Ø#Ð#ð˜Kð¨H°S¬Mððððð' ð'°¸#´ð'ð'ð'ð'ð'ð'rrLN)r0ÚtypingrrÚflake8.formattingrÚflake8.violationrr(r)Ú BaseFormatterrr4r=r?rLrrrúrSswðØ*Ð*ØÐÐÐÐÐØÐÐÐÐÐà"Ð"Ð"Ð"Ð"Ð"Ø&Ð&Ð&Ð&Ð&Ð&ð Ø Ø Ø ØØ ØØ Ø Ø ð ð €ð%Ð $˜VÐ $Ñ $Ô $€ ð ð ð ð ð �dÔ(ñ ô ð ðD4ð4ð4ð4ð4ˆoñ4ô4ð4ð&;ð;ð;ð;ð;ˆ_ñ;ô;ð;ð ðððð�?ñôðð*'ð'ð'ð'ð'ˆdÔ ñ'ô'ð'ð'ð'r