From dbde0ff5791b3a1175d2e22a4b71f3b9e3e410b7 Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Wed, 11 Mar 2015 15:39:28 +0200 Subject: [PATCH] adding pylint settings file --- .pylintrc | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ manage.py | 4 ++-- 2 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 .pylintrc diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 00000000..cb6a6fb8 --- /dev/null +++ b/.pylintrc @@ -0,0 +1,49 @@ +[MASTER] + +# Add to the black list. It should be a base name, not a +# path. You may set this option multiple times. +ignore=utils,test + +[MESSAGES CONTROL] + +# Disable the message(s) with the given id(s). +# disable-msg= + +[SIMILARITIES] + +# Minimum lines number of a similarity. +min-similarity-lines=5 + +[TYPECHECK] +ignore-mixin-members=yes +# ignored-classes= +zope=no +# generated-members=providedBy,implementedBy,rawDataReceived + +[DESIGN] +# Maximum number of arguments for function / method +max-args=10 + +# Maximum number of locals for function / method body +max-locals=20 + +# Maximum number of return / yield for function / method body +max-returns=10 + +# Maximum number of branch for function / method body +max-branchs=10 + +# Maximum number of statements in function / method body +max-statements=60 + +# Maximum number of parents for a class (see R0901). +max-parents=10 + +# Maximum number of attributes for a class (see R0902). +max-attributes=30 + +# Minimum number of public methods for a class (see R0903). +min-public-methods=0 + +# Maximum number of public methods for a class (see R0904). +max-public-methods=30 diff --git a/manage.py b/manage.py index fe88dd52..8cbbac16 100644 --- a/manage.py +++ b/manage.py @@ -26,11 +26,11 @@ def tag(): @manager.command def check(): """Check `objects` library and examples with code analyzers.""" - os.system('pylint objects/') + os.system('pylint objects/ --rcfile=./.pylintrc') os.system('flake8 objects/') os.system('pep257 objects/') - os.system('pylint examples/') + os.system('pylint examples/ --rcfile=./.pylintrc') os.system('flake8 examples/') os.system('pep257 examples/')