diff options
author | Filipe Brandenburger <filbranden@google.com> | 2016-02-02 14:13:13 -0800 |
---|---|---|
committer | Filipe Brandenburger <filbranden@google.com> | 2016-02-02 14:13:13 -0800 |
commit | a280b7613c6c88622313513097c2536724ef7e4b (patch) | |
tree | 5e4e0c3eb07d69a2feaab16591b76235d5726761 /pylintrc | |
parent | 26a96b43787daba80d95b5695c63412d88abd9e1 (diff) | |
download | pylint-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-- | pylintrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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] |