diff options
author | James Ennis <james.ennis@codethink.com> | 2018-02-28 17:22:41 +0000 |
---|---|---|
committer | James Ennis <james.ennis@codethink.com> | 2018-03-14 14:10:26 +0000 |
commit | 0394d67d26035234553c506539b1bd790cddec1d (patch) | |
tree | 4959576b79938d26add9319773312e50b6dce67c /.pylintrc | |
parent | 4741d1379a6e17048423f0e08588b607668ab98a (diff) | |
download | buildstream-0394d67d26035234553c506539b1bd790cddec1d.tar.gz |
pylint - disabled no-member, bad-exception-context and catching-non-exception warnings
Diffstat (limited to '.pylintrc')
-rw-r--r-- | .pylintrc | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -114,8 +114,6 @@ disable=##################################### logging-format-interpolation, - no-member, - # We use assert(<>), which should perhaps be assert <> superfluous-parens, @@ -136,11 +134,6 @@ disable=##################################### simplifiable-if-statement, - # These messages occur when excepting a GError - these should - # be individually marked - bad-exception-context, - catching-non-exception, - bad-whitespace # Enable the message, report, category or checker with the given id(s). You can @@ -197,7 +190,7 @@ contextmanager-decorators=contextlib.contextmanager # List of members which are set dynamically and missed by pylint inference # system, and so shouldn't trigger E1101 when accessed. Python regular # expressions are accepted. -generated-members= +generated-members=__enter__ # Tells whether missing members accessed in mixin class should be ignored. A # mixin class is detected if its name ends with "mixin" (case insensitive). @@ -214,13 +207,13 @@ ignore-on-opaque-inference=yes # List of class names for which member attributes should not be checked (useful # for classes with dynamically set attributes). This supports the use of # qualified names. -ignored-classes=optparse.Values,thread._local,_thread._local +ignored-classes=optparse.Values,thread._local,_thread._local,contextlib.closing,gi.repository.GLib.GError # List of module names for which member attributes should not be checked # (useful for modules/projects where namespaces are manipulated during runtime # and thus existing member attributes cannot be deduced by static analysis. It # supports qualified module names, as well as Unix pattern matching. -ignored-modules= +ignored-modules=pkg_resources # Show a hint with possible names when a member name was not found. The aspect # of finding the hint is based on edit distance. |