summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
authorMark E. Hamilton <mhamilt@sandia.gov>2016-02-10 10:44:30 -0700
committerMark E. Hamilton <mhamilt@sandia.gov>2016-02-15 10:29:02 -0700
commit4088eb434ba65a9d0a2f578d7d54cc9567f44cbe (patch)
tree9354ec12b3bd968426076c6bbaf3831328344649 /subcmds
parent55536286019c5c85314ea8a309a09c13976fac9a (diff)
downloadgit-repo-4088eb434ba65a9d0a2f578d7d54cc9567f44cbe.tar.gz
repo: Cleaned up pylint/pep8 violations
I noticed when running pylint (as the SUBMITTING_PATCHES file directs) that there were a number of violations reported. This makes it difficult to see violations I might have introduced. This commit corrects all pylint violations in the repo script. First I ran this to clean up the formatting: autopep8 --max-line-length=80 --indent-size 2 repo Following that the following violations remained: % pylint --rcfile=.pylintrc repo ************* Module repo W:220,21: Redefining name 'init_optparse' from outer scope (line 156) (redefined-outer-name) W:482, 2: No exception type(s) specified (bare-except) C:704, 0: Old-style class defined. (old-style-class) For line 220, the parameter to _GitcInitOptions was renamed so as not to mask the init_optparse global. For line 482, a pylint directive was added to disable the bare-execpt violation for just that line. For line 704, the _Options class was changed to subclass object. Additionally, the comments at lines 107-113 were spaced out to line up with the comment at line 112 that autopep8 moved. This script now has a pylint score of 10.0 Change-Id: I779b66eb6b061a195d3c4372b99dec1b6d2a214f
Diffstat (limited to 'subcmds')
0 files changed, 0 insertions, 0 deletions