diff --git a/blazarclient/utils.py b/blazarclient/utils.py index 433bbc2..6d67665 100644 --- a/blazarclient/utils.py +++ b/blazarclient/utils.py @@ -22,7 +22,7 @@ from oslo_serialization import jsonutils as json from blazarclient import exception from blazarclient.i18n import _ -ELAPSED_TIME_REGEX = '^(\d+)([s|m|h|d])$' +ELAPSED_TIME_REGEX = '^(\d+)([s|m|h|d])$' # noqa W605 LEASE_DATE_FORMAT = '%Y-%m-%dT%H:%M:%S.%f' API_DATE_FORMAT = '%Y-%m-%d %H:%M' diff --git a/test-requirements.txt b/test-requirements.txt index daa4b53..94950ea 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,7 +1,7 @@ # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -hacking>=1.1.0,<1.2.0 # Apache-2.0 +hacking>=1.1.0,<3.0.1 # Apache-2.0 # remove this pyflakes from here once you bump the # hacking to 3.2.0 or above. hacking 3.2.0 takes # care of pyflakes version compatibilty. diff --git a/tox.ini b/tox.ini index 1c5d2d6..9c603c8 100644 --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,8 @@ commands = flake8 show-source = true builtins = _ # Ignore currently failing tests for now -ignore = E265,H405 +# W504 skipped because it is overeager and unnecessary +ignore = E265,H405,W504 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg [hacking]