From f7a056dca09ce97c899fb8c3da29ccb2ffb74240 Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Fri, 25 Nov 2022 13:34:14 +0000 Subject: [PATCH] Fix pep8 Zuul failure A new version of flake8 (6.0.0) was released Nov 23, 2022 It is leading to an argparse error ValueError: 'string' is not callable The fix is to use 'hacking' which is an openstack module that pulls in the appropriate version of flake8. Closes-Bug: #1997971 Signed-off-by: Al Bailey Change-Id: Icaa5cd1cb7c362bd8caf666d82d7d7f655523fb0 --- openstack/python-horizon/centos/files/guni_config.py | 7 +++++++ test-requirements.txt | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/openstack/python-horizon/centos/files/guni_config.py b/openstack/python-horizon/centos/files/guni_config.py index 6ee58d79..5ec01afb 100644 --- a/openstack/python-horizon/centos/files/guni_config.py +++ b/openstack/python-horizon/centos/files/guni_config.py @@ -1,3 +1,10 @@ +""" +Copyright (c) 2022 Wind River Systems, Inc. + +SPDX-License-Identifier: Apache-2.0 + +""" + import datetime import fnmatch import os diff --git a/test-requirements.txt b/test-requirements.txt index 76713af4..3213ca34 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,5 +1,8 @@ +# The order of packages is significant, because pip processes them in the order +# of appearance. +# always put 'hacking' first. it pulls in flake8, etc.. +hacking < 4.0.1 bashate PyYAML yamllint -flake8 flake8-import-order