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
This commit is contained in:
David Pursehouse
2012-10-22 12:50:15 +09:00
parent 69998b0c6f
commit 4f7bdea9d2
5 changed files with 316 additions and 7 deletions

View File

@ -143,14 +143,14 @@ terminal and are not redirected.
break
else:
cn = None
# pylint: disable-msg=W0631
# pylint: disable=W0631
if cn and cn in _CAN_COLOR:
class ColorCmd(Coloring):
def __init__(self, config, cmd):
Coloring.__init__(self, config, cmd)
if ColorCmd(self.manifest.manifestProject.config, cn).is_on:
cmd.insert(cmd.index(cn) + 1, '--color')
# pylint: enable-msg=W0631
# pylint: enable=W0631
mirror = self.manifest.IsMirror
out = ForallColoring(self.manifest.manifestProject.config)