Skip to content

Commit bbee2e0

Browse files
committedJan 10, 2020
Fix regex for private & long functions
1 parent 6e13344 commit bbee2e0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎.pylintrc

+9-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,15 @@ good-names=os
6262
# allow modules and functions to use PascalCase
6363
module-rgx=[a-zA-Z0-9_]+$
6464
function-rgx=
65-
method-rgx=([a-z_][a-z0-9_]{2,30}|([a-z_][A-Za-z0-9]{2,30}))$
65+
## Allowed methods:
66+
# getSomething
67+
# _getSomething
68+
# __getSomething
69+
# __new__
70+
## Disallowed:
71+
# _GET
72+
# GetSomething
73+
method-rgx=(_{,2}[a-z][A-Za-z0-9]*_{,2})$
6674

6775
[DESIGN]
6876
# Maximum number of arguments for function / method.

0 commit comments

Comments
 (0)
Please sign in to comment.