From 2057436e70ea8b5ccc84e39b635f597f35e3dfab Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 3 Jul 2013 10:22:28 -0400 Subject: [PATCH] Make some tweaks to the pylintrc No one reads the pylint reports, we just want the messages. setUp and tearDown don't need docstrings. More ways to mark arguments as unused. More tweaks --- pylintrc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pylintrc b/pylintrc index dea0f240c6..4f32786bd5 100644 --- a/pylintrc +++ b/pylintrc @@ -39,7 +39,8 @@ disable= # C0301: Line too long # W0141: Used builtin function 'map' # W0142: Used * or ** magic - I0011,C0301,W0141,W0142, +# R0922: Abstract class is only referenced 1 times + I0011,C0301,W0141,W0142,R0922, # Django makes classes that trigger these # W0232: Class has no __init__ method @@ -74,7 +75,7 @@ include-ids=yes files-output=no # Tells whether to display a full report or only the messages -reports=yes +reports=no # Python expression which should return a note less than 10 (10 is the highest # note). You have access to the variables errors warning, statement which @@ -117,7 +118,7 @@ generated-members= size, content, status_code, -# For factory_body factories +# For factory_boy factories create @@ -165,7 +166,7 @@ bad-names=foo,bar,baz,toto,tutu,tata # Regular expression which should only match functions or classes name which do # not require a docstring -no-docstring-rgx=(__.*__|test_.*) +no-docstring-rgx=__.*__|test_.*|setUp|tearDown [MISCELLANEOUS] @@ -206,7 +207,7 @@ init-import=no # A regular expression matching the beginning of the name of dummy variables # (i.e. not used). -dummy-variables-rgx=_|dummy +dummy-variables-rgx=_|dummy|unused|.*_unused # List of additional names supposed to be defined in builtins. Remember that # you should avoid to define new builtins when possible.