@@ -528,7 +528,7 @@ argument-rgx=([a-z][a-z0-9_]{0,38}[a-z0-9]|[a-z][a-zA-Z0-9]{1,29})_{0,1}$
528528# Note: The expression below allows "lower_case_with_underscores" and
529529# "mixedCaseWithoutUnderscores"; leading underscores for privacy are allowed.
530530# Names matching this expression are compatible with PEP-8.
531- attr-rgx =(_{0,1 }([a-z][a-z0-9_]{0,38}[a-z0-9]|[a-z][a-zA-Z0-9]{1,39})|__[a-z_]+__)$
531+ attr-rgx =(_{0,2 }([a-z][a-z0-9_]{0,38}[a-z0-9]|[a-z][a-zA-Z0-9]{1,39})|__[a-z_]+__)$
532532
533533# Bad variable names which should always be refused, separated by a comma.
534534bad-names =foo,
@@ -574,7 +574,7 @@ class-attribute-rgx=_{0,2}([A-Z][A-Z0-9_]{0,38}[A-Z0-9]|[a-z][a-z0-9_]{0,38}[a-z
574574# allows that class names for callable classes can use function name syntax.
575575# This is not reflected in this regexp; callable classes that follow that
576576# convention should disable PyLint message C0103.
577- class-rgx =_{0,1 }[A-Z][a-zA-Z0-9]{1,39}$
577+ class-rgx =_{0,2 }[A-Z][a-zA-Z0-9]{1,39}$
578578
579579# Naming style matching correct constant names.
580580# const-naming-style=UPPER_CASE
@@ -585,7 +585,7 @@ class-rgx=_{0,1}[A-Z][a-zA-Z0-9]{1,39}$
585585# Note: The expression below allows "UPPER_CASE_WITH_UNDERSCORES"; leading
586586# underscores for privacy are allowed.
587587# Names matching this expression are compatible with PEP-8.
588- const-rgx =(_{0,1 }[A-Z][A-Z0-9_]{0,48}[A-Z0-9]|__[a-z_]+__)$
588+ const-rgx =(_{0,2 }[A-Z][A-Z0-9_]{0,48}[A-Z0-9]|__[a-z_]+__)$
589589
590590# Minimum line length for functions/classes that require docstrings, shorter
591591# ones are exempt.
@@ -601,7 +601,7 @@ docstring-min-length=-1
601601# "mixedCaseWithoutUnderscores"; leading underscores for privacy as well as
602602# double trailing underscores are allowed.
603603# Names matching this expression are compatible with PEP-8.
604- function-rgx =(_{0,1 }([a-z][a-z0-9_]{0,38}[a-z0-9]|[a-z][a-zA-Z0-9]{1,39})|__[a-z_]+__)$
604+ function-rgx =(_{0,2 }([a-z][a-z0-9_]{0,38}[a-z0-9]|[a-z][a-zA-Z0-9]{1,39})|__[a-z_]+__)$
605605# TODO AM: Verify whether two leading underscores are allowed / supported with name mangling.
606606
607607# Good variable names which should always be accepted, separated by a comma.
@@ -622,7 +622,7 @@ include-naming-hint=no
622622# with the set naming style.
623623# Note: The expression below allows "lower_case_with_underscores" and
624624# "mixedCaseWithoutUnderscores"; leading underscores for privacy are allowed.
625- inlinevar-rgx =_{0,1 }([a-z][a-z0-9_]{0,38}[a-z0-9]|[a-z][a-zA-Z0-9]{0,39})$
625+ inlinevar-rgx =_{0,2 }([a-z][a-z0-9_]{0,38}[a-z0-9]|[a-z][a-zA-Z0-9]{0,39})$
626626
627627# Naming style matching correct method names.
628628# method-naming-style=snake_case
@@ -633,15 +633,15 @@ inlinevar-rgx=_{0,1}([a-z][a-z0-9_]{0,38}[a-z0-9]|[a-z][a-zA-Z0-9]{0,39})$
633633# "mixedCaseWithoutUnderscores"; leading underscores for privacy as well as
634634# double trailing underscores are allowed.
635635# Names matching this expression are compatible with PEP-8.
636- method-rgx =(_{0,1 }([a-z][a-z0-9_]{0,38}[a-z0-9]|[a-z][a-zA-Z0-9]{1,39})|__[a-z_]+__)$
636+ method-rgx =(_{0,2 }([a-z][a-z0-9_]{0,38}[a-z0-9]|[a-z][a-zA-Z0-9]{1,39})|__[a-z_]+__)$
637637
638638# Naming style matching correct module names.
639639# module-naming-style=snake_case
640640
641641# Regular expression matching correct module names. Overrides module-naming-
642642# style. If left empty, module names will be checked with the set naming style.
643643# Note: Names matching this expression are compatible with PEP-8.
644- module-rgx =(_{0,1 }[a-z][a-z0-9_]{0,38}[a-z0-9]|__[a-z_]+__)$
644+ module-rgx =(_{0,2 }[a-z][a-z0-9_]{0,38}[a-z0-9]|__[a-z_]+__)$
645645
646646# Colon-delimited sets of names that determine each other's naming style when
647647# the name regexes allow several styles.
@@ -671,4 +671,4 @@ property-classes=abc.abstractproperty
671671# other variables; one leading underscore is allowed, and one trailing
672672# underscore is allowed to avoid conflists with built-in names.
673673# Names matching this expression are compatible with PEP-8.
674- variable-rgx =_{0,1 }([A-Z]([A-Z0-9_]{0,38}[A-Z0-9])?|[a-z]([a-z0-9_]{0,38}[a-z0-9])?|[a-z]([a-zA-Z0-9]{1,39})?)_{0,1}$
674+ variable-rgx =_{0,2 }([A-Z]([A-Z0-9_]{0,38}[A-Z0-9])?|[a-z]([a-z0-9_]{0,38}[a-z0-9])?|[a-z]([a-zA-Z0-9]{1,39})?)_{0,1}$
0 commit comments