Skip to content

Commit

Permalink
Pylint configurations: do not limit identifiers lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-s committed Dec 10, 2020
1 parent b96b3f1 commit c406c56
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
12 changes: 6 additions & 6 deletions .pylintrc11
Expand Up @@ -93,25 +93,25 @@ bad-functions=filter,apply,input
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$

# Regular expression which should only match correct module level names
const-rgx=[a-zA-Z0-9_]{2,30}$
const-rgx=[a-zA-Z0-9_]{2,}$

# Regular expression which should only match correct class names
class-rgx=[A-Z_][a-zA-Z0-9]+$

# Regular expression which should only match correct function names
function-rgx=[a-z_][a-zA-Z0-9_]{1,40}$
function-rgx=[a-z_][a-zA-Z0-9_]+$

# Regular expression which should only match correct method names
method-rgx=[a-z_][a-zA-Z0-9_]{2,40}$
method-rgx=[a-z_][a-zA-Z0-9_]{2,}$

# Regular expression which should only match correct instance attribute names
attr-rgx=[a-z_][a-zA-Z0-9_]{1,30}$
attr-rgx=[a-z_][a-zA-Z0-9_]+$

# Regular expression which should only match correct argument names
argument-rgx=[a-z_][a-zA-Z0-9_]{0,30}$
argument-rgx=[a-z_][a-zA-Z0-9_]*$

# Regular expression which should only match correct variable names
variable-rgx=[a-z_][a-zA-Z0-9_]{0,30}$
variable-rgx=[a-z_][a-zA-Z0-9_]*$

# Regular expression which should only match correct attribute names in class
# bodies
Expand Down
12 changes: 6 additions & 6 deletions .pylintrc19
Expand Up @@ -96,25 +96,25 @@ bad-functions=filter,apply,input
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$

# Regular expression which should only match correct module level names
const-rgx=[a-zA-Z0-9_]{2,30}$
const-rgx=[a-zA-Z0-9_]{2,}$

# Regular expression which should only match correct class names
class-rgx=[A-Z_][a-zA-Z0-9]+$

# Regular expression which should only match correct function names
function-rgx=[a-z_][a-zA-Z0-9_]{1,40}$
function-rgx=[a-z_][a-zA-Z0-9_]+$

# Regular expression which should only match correct method names
method-rgx=[a-z_][a-zA-Z0-9_]{2,40}$
method-rgx=[a-z_][a-zA-Z0-9_]{2,}$

# Regular expression which should only match correct instance attribute names
attr-rgx=[a-z_][a-zA-Z0-9_]{1,30}$
attr-rgx=[a-z_][a-zA-Z0-9_]+$

# Regular expression which should only match correct argument names
argument-rgx=[a-z_][a-zA-Z0-9_]{0,30}$
argument-rgx=[a-z_][a-zA-Z0-9_]*$

# Regular expression which should only match correct variable names
variable-rgx=[a-z_][a-zA-Z0-9_]{0,30}$
variable-rgx=[a-z_][a-zA-Z0-9_]*$

# Regular expression which should only match correct attribute names in class
# bodies
Expand Down
12 changes: 6 additions & 6 deletions .pylintrc22
Expand Up @@ -99,25 +99,25 @@ bad-functions=filter,apply,input
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$

# Regular expression which should only match correct module level names
const-rgx=[a-zA-Z0-9_]{2,30}$
const-rgx=[a-zA-Z0-9_]{2,}$

# Regular expression which should only match correct class names
class-rgx=[A-Z_][a-zA-Z0-9]+$

# Regular expression which should only match correct function names
function-rgx=[a-z_][a-zA-Z0-9_]{1,40}$
function-rgx=[a-z_][a-zA-Z0-9_]+$

# Regular expression which should only match correct method names
method-rgx=[a-z_][a-zA-Z0-9_]{2,40}$
method-rgx=[a-z_][a-zA-Z0-9_]{2,}$

# Regular expression which should only match correct instance attribute names
attr-rgx=[a-z_][a-zA-Z0-9_]{1,30}$
attr-rgx=[a-z_][a-zA-Z0-9_]+$

# Regular expression which should only match correct argument names
argument-rgx=[a-z_][a-zA-Z0-9_]{0,30}$
argument-rgx=[a-z_][a-zA-Z0-9_]*$

# Regular expression which should only match correct variable names
variable-rgx=[a-z_][a-zA-Z0-9_]{0,30}$
variable-rgx=[a-z_][a-zA-Z0-9_]*$

# Regular expression which should only match correct attribute names in class
# bodies
Expand Down
14 changes: 7 additions & 7 deletions .pylintrc24
Expand Up @@ -100,29 +100,29 @@ bad-functions=filter,apply,input
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$

# Regular expression which should only match correct module level names
const-rgx=[a-zA-Z0-9_]{2,30}$
const-rgx=[a-zA-Z0-9_]{2,}$

# Regular expression which should only match correct class names
class-rgx=[A-Z_][a-zA-Z0-9]+$

# Regular expression which should only match correct function names
function-rgx=[a-z_][a-zA-Z0-9_]{1,40}$
function-rgx=[a-z_][a-zA-Z0-9_]+$

# Regular expression which should only match correct method names
method-rgx=[a-z_][a-zA-Z0-9_]{2,40}$
method-rgx=[a-z_][a-zA-Z0-9_]{2,}$

# Regular expression which should only match correct instance attribute names
attr-rgx=[a-z_][a-zA-Z0-9_]{1,30}$
attr-rgx=[a-z_][a-zA-Z0-9_]+$

# Regular expression which should only match correct argument names
argument-rgx=[a-z_][a-zA-Z0-9_]{0,30}$
argument-rgx=[a-z_][a-zA-Z0-9_]*$

# Regular expression which should only match correct variable names
variable-rgx=[a-z_][a-zA-Z0-9_]{0,30}$
variable-rgx=[a-z_][a-zA-Z0-9_]*$

# Regular expression which should only match correct attribute names in class
# bodies
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,}|(__.*__))$

# Regular expression which should only match correct list comprehension /
# generator expression variable names
Expand Down

0 comments on commit c406c56

Please sign in to comment.