From aa64120ba240cbe43bc9db80f0bb3a9286db4aae Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 16 Jan 2024 18:20:05 +0900 Subject: [PATCH] Bump hacking The version currently used is too old. Change-Id: I4b8163ce2766198636924c33f9a88576cd09a96f --- octaviaclient/hacking/checks.py | 6 +++--- test-requirements.txt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/octaviaclient/hacking/checks.py b/octaviaclient/hacking/checks.py index 8fab1ba..d83d8db 100644 --- a/octaviaclient/hacking/checks.py +++ b/octaviaclient/hacking/checks.py @@ -139,7 +139,7 @@ def no_log_warn(logical_line): O339 """ if logical_line.startswith('LOG.warn('): - yield(0, "O339:Use LOG.warning() rather than LOG.warn()") + yield (0, "O339:Use LOG.warning() rather than LOG.warn()") @core.flake8ext @@ -149,7 +149,7 @@ def no_xrange(logical_line): O340 """ if assert_no_xrange_re.match(logical_line): - yield(0, "O340: Do not use xrange().") + yield (0, "O340: Do not use xrange().") @core.flake8ext @@ -213,7 +213,7 @@ def check_no_basestring(logical_line): if re.search(r"\bbasestring\b", logical_line): msg = ("O343: basestring is not Python3-compatible, use " "six.string_types instead.") - yield(0, msg) + yield (0, msg) @core.flake8ext diff --git a/test-requirements.txt b/test-requirements.txt index e372073..79a5486 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,13 +2,13 @@ # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -hacking>=3.0.1,<3.1.0 # Apache-2.0 +hacking>=6.1.0,<6.2.0 # Apache-2.0 requests-mock>=1.2.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 doc8>=0.6.0 # Apache-2.0 Pygments>=2.2.0 # BSD license bandit!=1.6.0,>=1.1.0 # Apache-2.0 -flake8-import-order==0.12 # LGPLv3 +flake8-import-order>=0.18.0,0.19.0 # LGPLv3 pylint>=2.5.3 # GPLv2 python-subunit>=1.0.0 # Apache-2.0/BSD oslotest>=3.2.0 # Apache-2.0