diff options
author | Jay Faulkner <jay@jvf.cc> | 2014-08-26 16:05:58 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2014-08-26 16:05:58 -0400 |
commit | 31f9129c8a77aec8d3eb6fa649d1caa9b6df347e (patch) | |
tree | 10d634bc7732390c5043bd2ff1a678b5289abb93 /tools/hacking.py | |
parent | 190cacc430900d9d2dd4dd45c59d01e30e469720 (diff) | |
parent | 5fb6482692cfffba5ba45102858b14ba3acc5bc7 (diff) | |
download | vyos-cloud-init-31f9129c8a77aec8d3eb6fa649d1caa9b6df347e.tar.gz vyos-cloud-init-31f9129c8a77aec8d3eb6fa649d1caa9b6df347e.zip |
Fix pep8 issues, drop pylint.
pep8: passes on pylint 1.5.7 (and 1.5.6 utopic).
intent is that is to be the target for future changes.
pylint: remove as more hassle than its worth.
Intent is to move to pyflakes at some point.
Diffstat (limited to 'tools/hacking.py')
-rwxr-xr-x | tools/hacking.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/hacking.py b/tools/hacking.py index 26a07c53..e7797564 100755 --- a/tools/hacking.py +++ b/tools/hacking.py @@ -71,7 +71,7 @@ def cloud_import_alphabetical(physical_line, line_number, lines): # with or without "as y" length = [2, 4] if (len(split_line) in length and len(split_previous) in length and - split_line[0] == "import" and split_previous[0] == "import"): + split_line[0] == "import" and split_previous[0] == "import"): if split_line[1] < split_previous[1]: return (0, "N306: imports not in alphabetical order (%s, %s)" % (split_previous[1], split_line[1])) @@ -154,7 +154,7 @@ def add_cloud(): if not inspect.isfunction(function): continue if name.startswith("cloud_"): - exec("pep8.%s = %s" % (name, name)) # pylint: disable=W0122 + exec("pep8.%s = %s" % (name, name)) if __name__ == "__main__": # NOVA based 'hacking.py' error codes start with an N @@ -163,7 +163,7 @@ if __name__ == "__main__": pep8.current_file = current_file pep8.readlines = readlines try: - pep8._main() # pylint: disable=W0212 + pep8._main() finally: if len(_missingImport) > 0: print >> sys.stderr, ("%i imports missing in this test environment" |