Commit 2057436e by Ned Batchelder

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
parent b3723b1a
...@@ -39,7 +39,8 @@ disable= ...@@ -39,7 +39,8 @@ disable=
# C0301: Line too long # C0301: Line too long
# W0141: Used builtin function 'map' # W0141: Used builtin function 'map'
# W0142: Used * or ** magic # 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 # Django makes classes that trigger these
# W0232: Class has no __init__ method # W0232: Class has no __init__ method
...@@ -74,7 +75,7 @@ include-ids=yes ...@@ -74,7 +75,7 @@ include-ids=yes
files-output=no files-output=no
# Tells whether to display a full report or only the messages # 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 # 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 # note). You have access to the variables errors warning, statement which
...@@ -117,7 +118,7 @@ generated-members= ...@@ -117,7 +118,7 @@ generated-members=
size, size,
content, content,
status_code, status_code,
# For factory_body factories # For factory_boy factories
create create
...@@ -165,7 +166,7 @@ bad-names=foo,bar,baz,toto,tutu,tata ...@@ -165,7 +166,7 @@ bad-names=foo,bar,baz,toto,tutu,tata
# Regular expression which should only match functions or classes name which do # Regular expression which should only match functions or classes name which do
# not require a docstring # not require a docstring
no-docstring-rgx=(__.*__|test_.*) no-docstring-rgx=__.*__|test_.*|setUp|tearDown
[MISCELLANEOUS] [MISCELLANEOUS]
...@@ -206,7 +207,7 @@ init-import=no ...@@ -206,7 +207,7 @@ init-import=no
# A regular expression matching the beginning of the name of dummy variables # A regular expression matching the beginning of the name of dummy variables
# (i.e. not used). # (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 # List of additional names supposed to be defined in builtins. Remember that
# you should avoid to define new builtins when possible. # you should avoid to define new builtins when possible.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment