summaryrefslogtreecommitdiff
path: root/pylintrc
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-01-16 07:58:53 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-01-16 07:58:53 -0500
commitbdab4fa31dd367105f746ec972cd95de8c99eaef (patch)
tree368cf2181128338df46cd6dfe616bcf2269580c9 /pylintrc
parent697202cca950b04fd27cdb06b67b0b7c627e3d69 (diff)
downloadpython-coveragepy-bdab4fa31dd367105f746ec972cd95de8c99eaef.tar.gz
A one_of decorator for checking function arguments.
Diffstat (limited to 'pylintrc')
-rw-r--r--pylintrc27
1 files changed, 14 insertions, 13 deletions
diff --git a/pylintrc b/pylintrc
index b392166..c9f1dc3 100644
--- a/pylintrc
+++ b/pylintrc
@@ -2,13 +2,13 @@
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
# lint Python modules using external checkers.
-#
+#
# This is the main checker controlling the other ones and the reports
# generation. It is itself both a raw checker and an astng checker in order
# to:
# * handle message activation / deactivation at the module level
# * handle some basic but necessary stats'data (number of classes, methods...)
-#
+#
[MASTER]
# Specify a configuration file.
@@ -54,7 +54,7 @@ enable=
useless-suppression
# Disable the message(s) with the given id(s).
-disable=
+disable=
spelling,
# Messages that are just silly:
locally-disabled,
@@ -118,7 +118,7 @@ evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / stateme
# * dangerous default values as arguments
# * redefinition of function / method / class
# * uses of the global statement
-#
+#
[BASIC]
# Regular expression which should only match functions or classes name which do
@@ -126,8 +126,9 @@ evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / stateme
# Special methods don't: __foo__
# Test methods don't: testXXXX
# TestCase overrides don't: setUp, tearDown
+# Nested decorator implementations: _decorator, _wrapped
# Dispatched methods don't: _xxx__Xxxx
-no-docstring-rgx=__.*__|test[A-Z_].*|setUp|tearDown|_.*__.*
+no-docstring-rgx=__.*__|test[A-Z_].*|setUp|tearDown|_decorator|_wrapped|_.*__.*
# Regular expression which should only match correct module names
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
@@ -168,7 +169,7 @@ bad-functions=
# try to find bugs in the code using type inference
-#
+#
[TYPECHECK]
# Tells wether missing members accessed in mixin class should be ignored. A
@@ -189,7 +190,7 @@ acquired-members=REQUEST,acl_users,aq_parent
# * undefined variables
# * redefinition of variable from builtins or from an outer scope
# * use of variable before assigment
-#
+#
[VARIABLES]
# Tells wether we should check for unused import in __init__ files.
@@ -210,7 +211,7 @@ additional-builtins=
# * attributes not defined in the __init__ method
# * supported interfaces implementation
# * unreachable code
-#
+#
[CLASSES]
# List of method names used to declare (i.e. assign) instance attributes.
@@ -220,7 +221,7 @@ defining-attr-methods=__init__,__new__,setUp,reset
# checks for sign of poor/misdesign:
# * number of methods, attributes, local variables...
# * size, complexity of functions, methods
-#
+#
[DESIGN]
# Maximum number of arguments for function / method
@@ -256,7 +257,7 @@ max-public-methods=500
# * relative / wildcard imports
# * cyclic imports
# * uses of deprecated modules
-#
+#
[IMPORTS]
# Deprecated modules which should not be used, separated by a comma
@@ -280,7 +281,7 @@ int-import-graph=
# * strict indentation
# * line length
# * use of <> instead of !=
-#
+#
[FORMAT]
# Maximum number of characters on a single line.
@@ -297,7 +298,7 @@ indent-string=' '
# checks for:
# * warning notes in the code like FIXME, XXX
# * PEP 263: source code with non ascii character but no encoding declaration
-#
+#
[MISCELLANEOUS]
# List of note tags to take in consideration, separated by a comma.
@@ -307,7 +308,7 @@ notes=FIXME,XXX,TODO
# checks for similarities and duplicated code. This computation may be
# memory / CPU intensive, so you should disable it if you experiments some
# problems.
-#
+#
[SIMILARITIES]
# Minimum lines number of a similarity.