diff options
| author | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-10-22 12:50:15 +0900 |
|---|---|---|
| committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-10-24 10:18:13 +0900 |
| commit | 4f7bdea9d24c4eb52f83ada2b67b88ad67cb57a7 (patch) | |
| tree | 49c93020cd026d13f43325b43d13266542cdc5a1 /command.py | |
| parent | 69998b0c6ff724bf620480140ccce648fec7d6a9 (diff) | |
| download | git-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 'command.py')
| -rw-r--r-- | command.py | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -147,7 +147,7 @@ class Command(object): | |||
| 147 | result.sort(key=_getpath) | 147 | result.sort(key=_getpath) |
| 148 | return result | 148 | return result |
| 149 | 149 | ||
| 150 | # pylint: disable-msg=W0223 | 150 | # pylint: disable=W0223 |
| 151 | # Pylint warns that the `InteractiveCommand` and `PagedCommand` classes do not | 151 | # Pylint warns that the `InteractiveCommand` and `PagedCommand` classes do not |
| 152 | # override method `Execute` which is abstract in `Command`. Since that method | 152 | # override method `Execute` which is abstract in `Command`. Since that method |
| 153 | # is always implemented in classes derived from `InteractiveCommand` and | 153 | # is always implemented in classes derived from `InteractiveCommand` and |
| @@ -166,7 +166,7 @@ class PagedCommand(Command): | |||
| 166 | def WantPager(self, opt): | 166 | def WantPager(self, opt): |
| 167 | return True | 167 | return True |
| 168 | 168 | ||
| 169 | # pylint: enable-msg=W0223 | 169 | # pylint: enable=W0223 |
| 170 | 170 | ||
| 171 | class MirrorSafeCommand(object): | 171 | class MirrorSafeCommand(object): |
| 172 | """Command permits itself to run within a mirror, | 172 | """Command permits itself to run within a mirror, |
