From bf2bb4c88c93dfaccccb49dcf3e7485f99e23b5a Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 15 Mar 2017 15:03:47 -0700 Subject: [PATCH] Sadly pylint isn't backward compatible; comment out newer options Also slightly adjust some valid name conventions --- .pylint | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.pylint b/.pylint index cde3d47..22de311 100644 --- a/.pylint +++ b/.pylint @@ -44,7 +44,9 @@ load-plugins= disable=pointless-except, invalid-name, super-init-not-called, fixme, star-args, too-many-instance-attributes, too-few-public-methods, too-many-arguments, too-many-locals, too-many-public-methods, duplicate-code, bad-whitespace, - locally-disabled, locally-enabled, bad-continuation, wrong-import-order + locally-disabled, locally-enabled + +# bad-continuation, wrong-import-order [REPORTS] @@ -61,7 +63,7 @@ include-ids=yes # written in a file name "pylint_global.[txt|html]". files-output=no -# Tells wether to display a full report or only the messages +# Tells whether to display a full report or only the messages reports=no # Python expression which should return a note less than 10 (10 is the highes @@ -111,10 +113,10 @@ const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ class-rgx=[A-Z_][a-zA-Z0-9]+$ # Regular expression which should only match correct function names -function-rgx=[a-z_][a-z0-9_]{2,30}$ +function-rgx=[a-z_][a-z0-9]{2,30}$ # Regular expression which should only match correct method names -method-rgx=[a-z_][a-z0-9_]{2,30}$ +method-rgx=[a-z_][a-z0-9]{2,30}$ # Regular expression which should only match correct instance attribute names attr-rgx=[a-z_][a-z0-9_]{2,30}$ @@ -123,7 +125,7 @@ attr-rgx=[a-z_][a-z0-9_]{2,30}$ argument-rgx=[a-z_][a-z0-9_]{2,30}$ # Regular expression which should only match correct variable names -variable-rgx=[a-z_][a-z0-9_]{2,30}$ +variable-rgx=[a-z_][a-z0-9]{2,30}$ # Regular expression which should only match correct list comprehension / # generator expression variable names