tripleo-heat-templates/tools
Michele Baldessari 87b365afd3 Fix Flakes and lower-constraints errors
With the switch to Ubuntu Focal for tox jobs via https://review.opendev.org/#/c/738322/
our 1.1.0 version of hacking pulls in old modules that are not compatible
with python3.8:
https://github.com/openstack/hacking/blob/1.1.0/requirements.txt#L6

Let's upgrade hacking to >= 3.0.1 and < 3.1.0 so that it supports python3.8
correctly. The newer hacking also triggered new errors which are
fixed in this review as well:
./tools/render-ansible-tasks.py:113:25: F841 local variable 'e' is assigned to but never used
./tools/yaml-validate.py:541:19: F999 '...'.format(...) has unused arguments at position(s): 2
./tools/render-ansible-tasks.py:126:1: E305 expected 2 blank lines after class or function definition, found 1
./tools/yaml-validate.py:33:1: E305 expected 2 blank lines after class or function definition, found 1
./container_config_scripts/tests/test_nova_statedir_ownership.py:35:1: E305 expected 2 blank lines after class or function definition, found 0

Also make sure we exclude .tox and __pycache__ from flake8 as well

We also need to change the lower-constraint requirements to make them
py3.8 compatible. See https://bugs.launchpad.net/nova/+bug/1886298
cffi==1.14.0
greenlet==0.4.15
MarkupSafe==1.1.0
paramiko==2.7.1

Suggested-By: Yatin Karel <ykarel@redhat.com>

Change-Id: Ic280ce9a51f26d165d4e93ba0dc0c47cdf8d7961
Closes-Bug: #1895093
2020-09-10 11:10:54 +02:00
..
check-up-to-date.sh Make krb-service-principal metadata per-Role 2019-04-05 14:22:20 +00:00
make_ceph_disk_list.py Use python3 in tools scripts 2020-04-29 09:23:36 +02:00
merge-new-params-nic-config-script.py Pass Loader to yaml.load to remove YAMLLoadWarning 2019-09-06 13:29:16 +09:00
process-templates.py Use python3 in tools scripts 2020-04-29 09:23:36 +02:00
releasenotes_tox.sh tox: Keeping going with docs 2019-11-03 02:44:38 +08:00
render-ansible-tasks.py Fix Flakes and lower-constraints errors 2020-09-10 11:10:54 +02:00
roles-data-generate-samples.sh Add in roles data validation 2017-07-07 09:51:40 -06:00
roles-data-generate.py Use python3 in tools scripts 2020-04-29 09:23:36 +02:00
roles-data-validation.sh Remove fluentd composable service 2019-08-29 13:52:55 +01:00
yaml-diff.py Use python3 in tools scripts 2020-04-29 09:23:36 +02:00
yaml-nic-config-2-script.py Use python3 in tools scripts 2020-04-29 09:23:36 +02:00
yaml-validate.py Fix Flakes and lower-constraints errors 2020-09-10 11:10:54 +02:00