From 424d26c9728b79295f380a829d05a2fe2a2ef0e0 Mon Sep 17 00:00:00 2001 From: Robert Raposa Date: Mon, 21 Dec 2015 14:46:18 -0500 Subject: [PATCH] Update pylintrc_tweaks Add changes for longer names. This will get backed out once it makes it in to edx-pylint. TNL-3425 --- pylintrc | 10 +++++----- pylintrc_tweaks | 6 ++++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/pylintrc b/pylintrc index 069eaecb7c..80f638f3d8 100644 --- a/pylintrc +++ b/pylintrc @@ -95,10 +95,10 @@ const-rgx = (([A-Z_][A-Z0-9_]*)|(__.*__)|log|urlpatterns)$ class-rgx = [A-Z_][a-zA-Z0-9]+$ function-rgx = ([a-z_][a-z0-9_]{2,40}|test_[a-z0-9_]+)$ method-rgx = ([a-z_][a-z0-9_]{2,40}|setUp|set[Uu]pClass|tearDown|tear[Dd]ownClass|assert[A-Z]\w*|maxDiff|test_[a-z0-9_]+)$ -attr-rgx = [a-z_][a-z0-9_]{2,30}$ -argument-rgx = [a-z_][a-z0-9_]{2,30}$ -variable-rgx = [a-z_][a-z0-9_]{2,30}$ -class-attribute-rgx = ([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ +attr-rgx = [a-z_][a-z0-9_]{2,40}$ +argument-rgx = [a-z_][a-z0-9_]{2,40}$ +variable-rgx = [a-z_][a-z0-9_]{2,40}$ +class-attribute-rgx = ([A-Za-z_][A-Za-z0-9_]{2,40}|(__.*__))$ inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$ good-names = f,i,j,k,db,ex,Run,_,__ bad-names = foo,bar,baz,toto,tutu,tata @@ -180,4 +180,4 @@ int-import-graph = [EXCEPTIONS] overgeneral-exceptions = Exception -# 22900b2201bd1e9f0050ff51de25691939dc7901 +# b98d7d902efebf1f5eaafb847960e366a35fd51b diff --git a/pylintrc_tweaks b/pylintrc_tweaks index 45c76fc02f..484eb66ce9 100644 --- a/pylintrc_tweaks +++ b/pylintrc_tweaks @@ -1,3 +1,9 @@ # pylintrc tweaks for use with edx_lint. [MASTER] ignore+ = ,migrations + +[BASIC] +attr-rgx = [a-z_][a-z0-9_]{2,40}$ +argument-rgx = [a-z_][a-z0-9_]{2,40}$ +variable-rgx = [a-z_][a-z0-9_]{2,40}$ +class-attribute-rgx = ([A-Za-z_][A-Za-z0-9_]{2,40}|(__.*__))$