From: Jon Zhang Date: Tue, 6 Feb 2024 08:51:23 +0000 (+0000) Subject: Merge "Updated python version and flake8 in tox" X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=5229119cf0fee426b2d14af3887b6fe4f78318a6;hp=5c00dc9e61bd13c3f5a97ce5e821512553560043;p=pti%2Fo2.git Merge "Updated python version and flake8 in tox" --- 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