summaryrefslogtreecommitdiffstats
path: root/subcmds/forall.py
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2012-10-22 12:50:15 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2012-10-24 10:18:13 +0900
commit4f7bdea9d24c4eb52f83ada2b67b88ad67cb57a7 (patch)
tree49c93020cd026d13f43325b43d13266542cdc5a1 /subcmds/forall.py
parent69998b0c6ff724bf620480140ccce648fec7d6a9 (diff)
downloadgit-repo-4f7bdea9d24c4eb52f83ada2b67b88ad67cb57a7.tar.gz
Add pylint configuration and instructions
pylint configuration file (.pylintrc) is added, and submission instructions are updated to include pylint usage steps. Deprecated pylint suppression (`disable-msg`) is updated in a few modules to make it work properly with the latest version (0.26). Change-Id: I4ec2ef318e23557a374ecdbf40fe12645766830c
Diffstat (limited to 'subcmds/forall.py')
-rw-r--r--subcmds/forall.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py
index 2ece95ed..b633b7d4 100644
--- a/subcmds/forall.py
+++ b/subcmds/forall.py
@@ -143,14 +143,14 @@ terminal and are not redirected.
143 break 143 break
144 else: 144 else:
145 cn = None 145 cn = None
146 # pylint: disable-msg=W0631 146 # pylint: disable=W0631
147 if cn and cn in _CAN_COLOR: 147 if cn and cn in _CAN_COLOR:
148 class ColorCmd(Coloring): 148 class ColorCmd(Coloring):
149 def __init__(self, config, cmd): 149 def __init__(self, config, cmd):
150 Coloring.__init__(self, config, cmd) 150 Coloring.__init__(self, config, cmd)
151 if ColorCmd(self.manifest.manifestProject.config, cn).is_on: 151 if ColorCmd(self.manifest.manifestProject.config, cn).is_on:
152 cmd.insert(cmd.index(cn) + 1, '--color') 152 cmd.insert(cmd.index(cn) + 1, '--color')
153 # pylint: enable-msg=W0631 153 # pylint: enable=W0631
154 154
155 mirror = self.manifest.IsMirror 155 mirror = self.manifest.IsMirror
156 out = ForallColoring(self.manifest.manifestProject.config) 156 out = ForallColoring(self.manifest.manifestProject.config)