From cd999dd33a2449fd8480fd641678360a749e5498 Mon Sep 17 00:00:00 2001 From: jkraitbewr Date: Thu, 1 Feb 2024 11:44:29 -0500 Subject: [PATCH] Updated python version and flake8 in tox The Jenkins job no longer supports Python3.8. Flake8 was also using an old version that doesn't work on Python3.11+. TEST PLAN: * Run tox Issue-ID: INF-440 Signed-off-by: jkraitbewr Change-Id: I419608082b21e06bb3840e6265ab4757fba33299 --- requirements-test.txt | 4 ++-- tox.ini | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/requirements-test.txt b/requirements-test.txt index e5e572c..09238cd 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,4 +1,4 @@ -flake8==5.0.4 +flake8 pylint mypy requests @@ -14,4 +14,4 @@ tenacity pyOpenSSL # -e git+https://opendev.org/starlingx/distcloud-client.git@master#egg=distributedcloud-client&subdirectory=distributedcloud-client -# -e git+https://opendev.org/starlingx/config.git@master#egg=cgtsclient&subdirectory=sysinv/cgts-client/cgts-client \ No newline at end of file +# -e git+https://opendev.org/starlingx/config.git@master#egg=cgtsclient&subdirectory=sysinv/cgts-client/cgts-client diff --git a/tox.ini b/tox.ini index 5be820d..5ad70af 100644 --- a/tox.ini +++ b/tox.ini @@ -11,8 +11,8 @@ skipsdist = True [testenv] basepython = - code: python3.8 - flake8: python3.8 + code: python3 + flake8: python3 setenv = VIRTUAL_ENV={envdir} @@ -63,3 +63,6 @@ basepython = python3 deps = -r{toxinidir}/docs/requirements-docs.txt commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck + +[flake8] +extend-ignore = E231,F401 -- 2.16.6