From 36711bd1fcdb2ff4db0e69b3efe4cb2ecc66f9e4 Mon Sep 17 00:00:00 2001 From: Adrian Vladu Date: Wed, 27 Nov 2024 11:27:07 +0200 Subject: [PATCH] unit_tests: fix test requirements for windows Use a newer hacking and coverage version. The OpenStack upper requirements do not allow now for the hacking / coverage packages to be installed: ``` The user requested coverage!=4.4 and >=4.0 The user requested (constraint) coverage===7.6.7 ``` Added to the ignored flake rules: E741,H216,F522,H215,H211,E721. Change-Id: I4833aa467cd7dd69bf897b6bce2449cacc1dbc1e --- test-requirements.txt | 5 ++--- tox.ini | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 5a4f8c9c..e7590c61 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,9 +2,8 @@ # 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 - -coverage!=4.4,>=4.0 # Apache-2.0 +hacking==6.1.0 # Apache-2.0 +coverage>=4.4.1 # Apache-2.0 ddt>=1.0.1 # MIT docutils>=0.11 # OSI-Approved Open Source, Public Domain mock>=1.0 # BSD diff --git a/tox.ini b/tox.ini index a40f48a9..496d569c 100644 --- a/tox.ini +++ b/tox.ini @@ -46,5 +46,5 @@ commands = # E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126 # E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301 -ignore = E125,E251,W503,W504,E305,E731,E117,W605,F632 +ignore = E125,E251,W503,W504,E305,E731,E117,W605,F632,E741,H216,F522,H215,H211,E721 exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools