class documentation

class SnakeCaseStyle(NamingStyle): (source)

View In Hierarchy

Regex rules for snake_case naming style.

Constant CLASS_ATTRIBUTE_RGX Undocumented
Constant CLASS_NAME_RGX Undocumented
Constant CONST_NAME_RGX Undocumented
Constant DEFAULT_NAME_RGX Undocumented
Constant MOD_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,}|_[^\WA-Z]*|__[^\WA-Z\d_][^\WA-Z]+__)$')
MOD_NAME_RGX = (source)

Undocumented

Value
re.compile(r'[^\W\dA-Z][^\WA-Z]*$')