bg 4ddlmZddlZddlmZddlmZddlmZmZGddZ Gdd e Z Gd d e Z Gd d e Z Gdde Z Gdde Ze e e e edZhdZdddddddddddd ZheddZddZdS)) annotationsN)Pattern) constants) OptionDictOptionsceZdZUdZejdZded<eZded<eZ ded<eZ ded<eZ ded<eZ ded <eZ ded <eddZdS) NamingStyleaClass to register all accepted forms of a single naming style. It may seem counter-intuitive that single naming style has multiple "accepted" forms of regular expressions, but we need to special-case stuff like dunder names in method names. z.* Pattern[str]ANYCLASS_NAME_RGX MOD_NAME_RGXCONST_NAME_RGX COMP_VAR_RGXDEFAULT_NAME_RGXCLASS_ATTRIBUTE_RGX name_typestrreturnc |j|j|j|j|j|j|j|j|j|j|jd |S)N moduleconstclassfunctionmethodattrargumentvariableclass_attribute class_const inlinevar)r rr rrr)clsrs /builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/pylint/checkers/base/name_checker/naming_style.py get_regexzNamingStyle.get_regexs_&'',*(,,"6-)      N)rrrr )__name__ __module__ __qualname____doc__recompiler __annotations__r r rrrr classmethodr$r%r#r r s# 4((C((((#&N&&&&!$L$$$$#&N&&&&!$L$$$$%((((((+++++   [   r%r ceZdZdZejdZejdZejdZeZ ejdZ ejdZ dS)SnakeCaseStylez(Regex rules for snake_case naming style.z[^\W\dA-Z][^\WA-Z]+$z[^\W\dA-Z][^\WA-Z]*$z([^\W\dA-Z][^\WA-Z]*|__.*__)$z=([^\W\dA-Z][^\WA-Z]{2,}|_[^\WA-Z]*|__[^\WA-Z\d_][^\WA-Z]+__)$z ([^\W\dA-Z][^\WA-Z]{2,}|__.*__)$N r&r'r(r)r*r+r r rrrrr.r%r#r0r0/s}22RZ 788N2:566LRZ @AAN!L!rzH%"*%HIIr%r0ceZdZdZejdZejdZejdZeZ ejdZ ejdZ dS)CamelCaseStylez'Regex rules for camelCase naming style.z[^\W\dA-Z][^\W_]+$z[^\W\dA-Z][^\W_]*$z([^\W\dA-Z][^\W_]*|__.*__)$z*([^\W\dA-Z][^\W_]{2,}|__[^\W\dA-Z_]\w+__)$z([^\W\dA-Z][^\W_]{2,}|__.*__)$Nr1r.r%r#r3r3<sw11RZ 566N2:344LRZ >??NL!rz"OPP$"*%FGGr%r3ceZdZdZejdZeZejdZeZ ejdZ ejdZ dS)PascalCaseStylez(Regex rules for PascalCase naming style.z[^\W\da-z][^\W_]+$z([^\W\da-z][^\W_]*|__.*__)$z*([^\W\da-z][^\W_]{2,}|__[^\W\dA-Z_]\w+__)$z[^\W\da-z][^\W_]{2,}$Nr1r.r%r#r5r5Gsj22RZ 566N!LRZ >??N!L!rz"OPP$"*%=>>r%r5ceZdZdZejdZeZejdZeZ ejdZ ejdZ dS)UpperCaseStylez(Regex rules for UPPER_CASE naming style.z[^\W\da-z][^\Wa-z]+$z([^\W\da-z][^\Wa-z]*|__.*__)$z,([^\W\da-z][^\Wa-z]{2,}|__[^\W\dA-Z_]\w+__)$z[^\W\da-z][^\Wa-z]{2,}$Nr1r.r%r#r7r7Rsj22RZ 788N!LRZ @AAN!L!rz"QRR$"*%?@@r%r7ceZdZdS)AnyStyleN)r&r'r(r.r%r#r9r9]sDr%r9) snake_case camelCase PascalCase UPPER_CASEany> rrrrrrrrr!r rr:r=r<r>rtypevar typealiasrrc g}ttD]}tj|}|dd}d|d}|t vr |d|dz }|d|dz }|t vrUt |}||d |d tt d d |d df||dddd|dft|S)N_-z$Regular expression matching correct z names. z Overrides z-naming-style. zIf left empty, z1 names will be checked with the set naming style.z -naming-stylechoicez