class documentation

class UpperCaseStyle(NamingStyle): (source)

View In Hierarchy

Regex rules for UPPER_CASE naming style.

Constant CLASS_ATTRIBUTE_RGX Undocumented
Constant CLASS_NAME_RGX Undocumented
Constant CONST_NAME_RGX Undocumented
Constant DEFAULT_NAME_RGX Undocumented

Inherited from NamingStyle:

Class Method get_regex Undocumented
Constant ANY Undocumented
CLASS_ATTRIBUTE_RGX = (source)

Undocumented

Value
re.compile(r'[^\W\da-z][^\Wa-z]{2,}$')
CLASS_NAME_RGX = (source)

Undocumented

Value
re.compile(r'[^\W\da-z][^\Wa-z]+$')
CONST_NAME_RGX = (source)

Undocumented

Value
re.compile(r'([^\W\da-z][^\Wa-z]*|__.*__)$')
DEFAULT_NAME_RGX = (source)

Undocumented

Value
re.compile(r'([^\W\da-z][^\Wa-z]{2,}|__[^\W\dA-Z_]\w+__)$')