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

@ -147,7 +147,7 @@ class Command(object):
result.sort(key=_getpath)
return result
# pylint: disable-msg=W0223
# pylint: disable=W0223
# Pylint warns that the `InteractiveCommand` and `PagedCommand` classes do not
# override method `Execute` which is abstract in `Command`. Since that method
# is always implemented in classes derived from `InteractiveCommand` and
@ -166,7 +166,7 @@ class PagedCommand(Command):
def WantPager(self, opt):
return True
# pylint: enable-msg=W0223
# pylint: enable=W0223
class MirrorSafeCommand(object):
"""Command permits itself to run within a mirror,