nfv/nova-api-proxy/tox.ini
Al Bailey e6114addac Cleanup tox.ini and zuul files from older releases
tox changes:
 - remove python2.7 and python3.6 unit test targets
from tox.ini since only python 3.9 is supported
 - remove the (junk) functional target from tox.ini
 - fix yamllint target in tox.ini so it will actually
 process files. Also added a basic yammlint settings file.
 - nova-api-proxy tox jobs are now setup for py39
 - Removed the py27 limitations from requirements files.
 - Removed the upper limits for pylint and astroid.
 - Added additional suppressions for new pylint codes.

Zuul changes:
 - remove py27 job from zuul
 - remove the unused (never working) devstack job
 - set the parent zuul jobs to be the jobs defined under
openstack-zuul-jobs rather than just zuul-jobs
 - Specify debian-bullseye (python3.9) as the nodeset.
  ubuntu-jammy iss python3.10, ubuntu-focal is python3.8
 - override tox constraints file to use the STX constraints
   This means starlingx/root needs to be a required project
 - Removed the nodeset from the pep8 jobs.

Note: these changes do not affect runtime for NFV.

Test Plan:
  Pass tox in nfv directory of (debian) dev env.
  Pass tox in nova-api-proxy directory of (debian) dev env.
  build-pkgs -p nfv

Story: 2010531
Task: 47146

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I6dad77bec40e9b64a9314b237270af046728efb3
2023-01-19 15:42:06 +00:00

57 lines
1.5 KiB
INI
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[tox]
envlist = pep8,pylint
minversion = 2.9
skipsdist = True
[testenv]
basepython = python3
sitepackages = False
install_command = pip install \
-c{env:TOX_CONSTRAINTS_FILE:https://opendev.org/starlingx/root/raw/branch/master/build-tools/requirements/debian/upper-constraints.txt} \
{opts} {packages}
setenv = VIRTUAL_ENV={envdir}
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
PYTHONDONTWRITEBYTECODE=True
commands = find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -not -path '*/__pycache__/*' -name '*.py[c|o]' -delete
allowlist_externals = find
deps=-r{toxinidir}/test-requirements.txt
[testenv:venv]
commands = {posargs}
[flake8]
# - hacking codes -
# H104: File contains nothing but comments
# H301: one import per line
# H404: multi line docstring should start without a leading new line
# H405: multi line docstring summary not separated with an empty line
# H501: Do not use self.__dict__ for string formatting
ignore=H104,H301,H404,H405,H501
# H106 Dont put vim configuration in source files (off by default).
# H203 Use assertIs(Not)None to check for None (off by default).
# TODO: enable: H904 Delay string interpolations at logging calls
enable-extensions = H106,H203
max-line-length=84
[testenv:pep8]
usedevelop = False
skip_install = True
commands =
flake8
[testenv:pylint]
deps=
-r{toxinidir}/test-requirements.txt
eventlet
oslo.config
oslo.log
paste
PasteDeploy
routes
webob
commands = pylint nova-api-proxy/nova_api_proxy --rcfile=pylint.rc