From 8c8325bba986d6cf56a2ddb01f76e85fa32d9715 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 26 Jan 2021 21:13:25 +0100 Subject: [PATCH] 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 --- .pylintrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pylintrc b/.pylintrc index 5f3d2b235..d217ff69c 100644 --- a/.pylintrc +++ b/.pylintrc @@ -15,9 +15,9 @@ bad-functions=input # [missing-docstring] docstring-min-length=10 -# Allow longer methods than the default. +# No upper limit on method names. Pylint <2.1.0 has an upper limit of 30. # [invalid-name] -method-rgx=[a-z_][a-z0-9_]{2,35}$ +method-rgx=[a-z_][a-z0-9_]{2,}$ # Allow module names containing a dash (but no underscore or uppercase letter). # They are whole programs, not meant to be included by another module.