summaryrefslogtreecommitdiff
path: root/pylintrc
diff options
context:
space:
mode:
authorFilipe Brandenburger <filbranden@google.com>2016-02-02 14:13:13 -0800
committerFilipe Brandenburger <filbranden@google.com>2016-02-02 14:13:13 -0800
commita280b7613c6c88622313513097c2536724ef7e4b (patch)
tree5e4e0c3eb07d69a2feaab16591b76235d5726761 /pylintrc
parent26a96b43787daba80d95b5695c63412d88abd9e1 (diff)
downloadpylint-git-a280b7613c6c88622313513097c2536724ef7e4b.tar.gz
Make list of contextmanager decorators configurable.
This makes it possible to configure pylint to recognize backports of contextlib or other decorators similar to @contextmanager without the need for an explicit #pylint disable=not-context-manager Tested with a backport of contextlib from Python 3 onto Python 2 imported under a different name.
Diffstat (limited to 'pylintrc')
-rw-r--r--pylintrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/pylintrc b/pylintrc
index 32777f967..6d6d4f7db 100644
--- a/pylintrc
+++ b/pylintrc
@@ -273,6 +273,10 @@ ignored-classes=SQLObject, optparse.Values
# expressions are accepted.
generated-members=REQUEST,acl_users,aq_parent
+# List of decorators that create context managers from functions, such as
+# contextlib.contextmanager.
+contextmanager-decorators=contextlib.contextmanager
+
[SPELLING]