
    g                       d Z ddlmZ ddlZddlZddlZddlmZ ddlmZ ddl	Z
ddlmZ  ej                  e      Zi ddd	d
dddddddddddddddddddddd d!d"d#d$d%d&d'd(i d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVZ G dW dXe
j"                  j$                        Zy)Yz8Plugin built-in to Flake8 to treat pyflakes as a plugin.    )annotationsN)Any)	Generator)OptionManagerUnusedImportF401ImportShadowedByLoopVarF402ImportStarUsedF403LateFutureImportF404ImportStarUsageF405ImportStarNotPermittedF406FutureFeatureNotDefinedF407PercentFormatInvalidFormatF501PercentFormatExpectedMappingF502PercentFormatExpectedSequenceF503 PercentFormatExtraNamedArgumentsF504PercentFormatMissingArgumentF505$PercentFormatMixedPositionalAndNamedF506$PercentFormatPositionalCountMismatchF507!PercentFormatStarRequiresSequenceF508'PercentFormatUnsupportedFormatCharacterF509StringDotFormatInvalidFormatF521"StringDotFormatExtraNamedArgumentsF522'StringDotFormatExtraPositionalArgumentsF523StringDotFormatMissingArgumentF524StringDotFormatMixingAutomaticF525FStringMissingPlaceholdersF541MultiValueRepeatedKeyLiteralF601MultiValueRepeatedKeyVariableF602%TooManyExpressionsInStarredAssignmentF621TwoStarredExpressionsF622AssertTupleF631	IsLiteralF632InvalidPrintSyntaxF633IfTupleF634BreakOutsideLoopF701ContinueOutsideLoopF702YieldOutsideFunctionF704ReturnOutsideFunctionF706F707F721F722F811F821F822F823F831F841F842F901)DefaultExceptNotLastDoctestSyntaxErrorForwardAnnotationSyntaxErrorRedefinedWhileUnusedUndefinedNameUndefinedExportUndefinedLocalDuplicateArgumentUnusedVariableUnusedAnnotationRaiseNotImplementedc                  T     e Zd ZdZdZd fdZedd       Zed	d       Zd
dZ	 xZ
S )FlakesCheckerz=Subclass the Pyflakes checker to conform with the flake8 API.Fc                >    t         |   ||| j                         y)z=Initialize the PyFlakes plugin with an AST tree and filename.)filenamewithDoctestN)super__init__with_doctest)selftreerd   	__class__s      Z/var/www/html/brdwt/brdwt/brdwtenv/lib/python3.12/site-packages/flake8/plugins/pyflakes.pyrg   zFlakesChecker.__init__F   s"    81B1B 	 	
    c                Z    |j                  dddd       |j                  ddddd	       y
)z:Register options for PyFlakes on the Flake8 OptionManager.z
--builtinsTz&define more built-ins, comma separated)parse_from_configcomma_separated_listhelpz
--doctestsF
store_truez!also check syntax of the doctests)defaultactionro   rq   N)
add_option)clsparsers     rl   add_optionszFlakesChecker.add_optionsL   sG     	"!%9	 	 	
 	"4 	 	
rm   c                    |j                   r*| j                  j                  |j                         | _        |j                  | _        y)z0Parse option values from Flake8's OptionManager.N)builtinsbuiltInsuniondoctestsrh   )rv   optionss     rl   parse_optionszFlakesChecker.parse_options]   s7     <<--g.>.>?CL"++rm   c           
   #    K   | j                   D ]y  }t        |dd      }|j                  |dj                  t        j                  t        |      j                  d      |j                  |j                  z        |j                  f { yw)zRun the plugin.colr   z{} {}F999N)messagesgetattrlinenoformatFLAKE8_PYFLAKES_CODESgettype__name__messagemessage_argsrk   )ri   r   r   s      rl   runzFlakesChecker.rund   s~     }} 
	G'5!,C)--d7m.D.DfMOOg&:&:: !! 
	s   B
B)rj   zast.ASTrd   strreturnNone)rw   r   r   r   )r~   zargparse.Namespacer   r   )r   z6Generator[tuple[int, int, str, type[Any]], None, None])r   
__module____qualname____doc__rh   rg   classmethodrx   r   r   __classcell__)rk   s   @rl   rb   rb   A   s=    GL
 
 
  , ,rm   rb   )r   
__future__r   argparseastloggingtypingr   r   pyflakes.checkerpyflakesflake8.options.managerr   	getLoggerr   LOGr   checkerCheckerrb    rm   rl   <module>r      s   > "  
     0g!.F.v. f. 	.
 v. f. v. !&. #F. $V. '. #F. +F. +F. (.  .v!." #F#.$ )&%.& .v'.( %f).* %f+., !&-.. #F/.0 $V1.2 ,V3.4 V5.6 67.8 9.: &;.< v=.> ?.@ 6A.B FC.D VE.F # $*"![. b/H$$,, /rm   