Skip to content

Commit 8c8325b

Browse files
Allow longer method names
Older versions of Pylint (<2.1.0) limited the names of various things to 30 characters. We allowed up to 35 characters for method name due to pre-existing identifiers. Modern versions of Pylint no longer have an upper limit. Let's not be pickier than Pylint's default configuration. Signed-off-by: Gilles Peskine <[email protected]>
1 parent 0655b4f commit 8c8325b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.pylintrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ bad-functions=input
1515
# [missing-docstring]
1616
docstring-min-length=10
1717

18-
# Allow longer methods than the default.
18+
# No upper limit on method names. Pylint <2.1.0 has an upper limit of 30.
1919
# [invalid-name]
20-
method-rgx=[a-z_][a-z0-9_]{2,35}$
20+
method-rgx=[a-z_][a-z0-9_]{2,}$
2121

2222
# Allow module names containing a dash (but no underscore or uppercase letter).
2323
# They are whole programs, not meant to be included by another module.

0 commit comments

Comments
 (0)