From ecc2997769a6606a42acb76ddcc21b9ee4d7016f Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 17 May 2019 09:31:30 +0200 Subject: [PATCH] Update hacking to version 1.1 Update hacking, fix a couple of problems found. Change-Id: Ie903e3ddf13e78d758b26e884bb1fb0e1a6ed73c --- tools/fix-neutron-stadium.py | 4 ++-- tox.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/fix-neutron-stadium.py b/tools/fix-neutron-stadium.py index 204f548db1..b357a8e0a7 100644 --- a/tools/fix-neutron-stadium.py +++ b/tools/fix-neutron-stadium.py @@ -22,7 +22,7 @@ import yaml # from : -# http://stackoverflow.com/questions/8640959/how-can-i-control-what-scalar-form-pyyaml-uses-for-my-data flake8: noqa +# http://stackoverflow.com/questions/8640959/how-can-i-control-what-scalar-form-pyyaml-uses-for-my-data # flake8: noqa def should_use_block(value): for c in u"\u000a\u000d\u001c\u001d\u001e\u0085\u2028\u2029": if c in value: @@ -33,7 +33,7 @@ def should_use_block(value): def my_represent_scalar(self, tag, value, style=None): if style is None: if should_use_block(value): - style='|' + style = '|' else: style = self.default_style diff --git a/tox.ini b/tox.ini index c9f0d90f23..cf16fb8251 100644 --- a/tox.ini +++ b/tox.ini @@ -34,7 +34,7 @@ deps = # zuul requirements.txt ansible>=2.5.1,<2.6 ansible-lint<4 - hacking>=0.10,<0.11 + hacking>=1.1,<1.2 bashate>=0.2 commands = {toxinidir}/tools/run-bashate.sh