diff options
author | Scott Moser <smoser@brickies.net> | 2017-05-23 13:09:26 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-05-23 16:07:51 -0400 |
commit | 2825a917e5fa130818c0d77219f32961b99a057f (patch) | |
tree | 7c35ff901fb6474c4404df520136e28bed78cf2d /tools | |
parent | 06a7f0afc4db3f8ba2a6b3b521274ee45a028ef2 (diff) | |
download | vyos-cloud-init-2825a917e5fa130818c0d77219f32961b99a057f.tar.gz vyos-cloud-init-2825a917e5fa130818c0d77219f32961b99a057f.zip |
flake8: move the pinned version of flake8 up to 3.3.0
This just moves flake8 and related tools up to newer versions and fixes
the complaints associated with that.
We added to the list of flake8 ignores:
H102: do not put vim info in source files
H304: no relative imports
Also updates and pins the following in the flake8 environment:
pep8: 1.7.0 => drop (although hacking still pulls it in).
pyflakes 1.1.0 => 1.5.0
hacking 0.10.2 => 0.13.0
flake8 2.5.4 => 3.3.0
pycodestyle none => 2.3.1
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/hacking.py | 5 | ||||
-rwxr-xr-x | tools/mock-meta.py | 2 | ||||
-rwxr-xr-x | tools/net-convert.py | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/tools/hacking.py b/tools/hacking.py index 6c320935..e6a05136 100755 --- a/tools/hacking.py +++ b/tools/hacking.py @@ -165,7 +165,8 @@ if __name__ == "__main__": pep8._main() finally: if len(_missingImport) > 0: - print >> sys.stderr, ("%i imports missing in this test environment" - % len(_missingImport)) + sys.stderr.write( + "%i imports missing in this test environment\n" % + len(_missingImport)) # vi: ts=4 expandtab diff --git a/tools/mock-meta.py b/tools/mock-meta.py index 82816e8a..f185dbf2 100755 --- a/tools/mock-meta.py +++ b/tools/mock-meta.py @@ -21,8 +21,8 @@ import functools import json import logging import os -import socket import random +import socket import string import sys import yaml diff --git a/tools/net-convert.py b/tools/net-convert.py index 870da639..b2db8adf 100755 --- a/tools/net-convert.py +++ b/tools/net-convert.py @@ -9,8 +9,8 @@ import yaml from cloudinit.sources.helpers import openstack from cloudinit.net import eni -from cloudinit.net import network_state from cloudinit.net import netplan +from cloudinit.net import network_state from cloudinit.net import sysconfig |