summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2012-10-24 10:30:49 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2012-10-24 10:32:47 +0900
commitb361460cee9138a0bd6d541e35d93747097f4c85 (patch)
treeda63b0150a9cc0de98e89c39ea46e6abdd4e20c1
parent2e9da0e6f2db464e811b35bfe6f5f1aa9cec513e (diff)
downloadpygerrit-b361460cee9138a0bd6d541e35d93747097f4c85.tar.gz
Update pylint config to work with version 0.26
In version 0.26 of pylint the message enable/disable options are changed. Update the configuration to reflect this. Also remove redundant suppressions. Change-Id: Ia6e4c6c79cd573dfc91aec53b32c58930fbbde55
-rw-r--r--.pylintrc11
-rw-r--r--pygerrit/stream.py3
2 files changed, 2 insertions, 12 deletions
diff --git a/.pylintrc b/.pylintrc
index 64e7acc..c68c809 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -50,10 +50,10 @@ load-plugins=
#disable-msg-cat=
# Enable the message(s) with the given id(s).
-#enable-msg=
+enable=RP0004
# Disable the message(s) with the given id(s).
-disable-msg=R0903,R0912,R0913,R0914,R0915,W0141
+disable=R0903,R0912,R0913,R0914,R0915,W0141,RP0001,RP0003,RP0101,RP0002,RP0401,RP0701,RP0801
[REPORTS]
@@ -84,13 +84,6 @@ evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / stateme
# evaluation report (R0004).
comment=no
-# Enable the report(s) with the given id(s).
-enable-report=R0004
-
-# Disable the report(s) with the given id(s).
-disable-report=R0001,R0003,R0101,R0002,R0401,R0701,R0801
-
-
# checks for
# * unused variables / imports
# * undefined variables
diff --git a/pygerrit/stream.py b/pygerrit/stream.py
index ed09e73..ba9525b 100644
--- a/pygerrit/stream.py
+++ b/pygerrit/stream.py
@@ -33,10 +33,7 @@ from threading import Thread, Event
from pygerrit.error import GerritError
from pygerrit.events import GerritEvent
-# pylint: disable-msg=W0611
-# GerritEventFactory is used, but pylint does not detect it
from pygerrit.events import GerritEventFactory
-# pylint: enable-msg=W0611
@GerritEventFactory.register("gerrit-stream-error")