[tox] envlist = py3,pep8 minversion = 3.18.0 [testenv] setenv = PYTHONDONTWRITEBYTECODE=1 usedevelop = True deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = stestr run {posargs} stestr slowest passenv = http_proxy https_proxy no_proxy [testenv:pep8] deps = {[testenv]deps} pre-commit commands = pre-commit run -a python tools/custom_guidelines.py --exclude heat/engine/resources/aws [testenv:venv] commands = {posargs} [testenv:cover] setenv = PYTHON=coverage run --source heat --parallel-mode commands = coverage erase stestr run {posargs} coverage combine coverage html -d cover coverage xml -o cover/coverage.xml coverage report [testenv:docs] allowlist_externals = rm deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt -r{toxinidir}/doc/requirements.txt commands = rm -rf doc/build sphinx-build -W --keep-going -b html doc/source doc/build/html [testenv:pdf-docs] deps = {[testenv:docs]deps} allowlist_externals = make commands = sphinx-build -W -b latex doc/source doc/build/pdf make -C doc/build/pdf [testenv:api-ref] # This environment is called from CI scripts to test and publish # the API Ref to docs.openstack.org. deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/doc/requirements.txt allowlist_externals = rm commands = rm -rf api-ref/build sphinx-build -W --keep-going -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html [testenv:genconfig] commands = oslo-config-generator --config-file=etc/heat/heat-config-generator.conf [testenv:genpolicy] commands = oslopolicy-sample-generator --config-file etc/heat/heat-policy-generator.conf [flake8] show-source = true # E123 closing bracket does not match indentation of opening bracket's line # W503 line break before binary operator # W504 line break after binary operator # TODO(tkajinam): Check why Nnnn checks from neutron-lib are enabled ignore = E123,W503,W504,N enable-extensions = H203,H204,H205,H211,H212 exclude=.*,dist,*lib/python*,*egg,build,*convergence/scenarios/* max-complexity=23 [doc8] ignore = D001 ignore-path = .venv,.git,.tox,.tmp,*heat/locale*,*lib/python*,openstack_heat.egg*,doc/build,releasenotes/* [hacking] import_exceptions = heat.common.i18n [flake8:local-plugins] extension = HE301 = checks:no_log_warn HE302 = checks:check_python3_no_iteritems HE303 = checks:check_python3_no_iterkeys HE304 = checks:check_python3_no_itervalues paths = ./heat/hacking [testenv:debug] commands = oslo_debug_helper {posargs} [testenv:releasenotes] allowlist_externals = rm deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/doc/requirements.txt commands = rm -rf releasenotes/build sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html [testenv:bindep] # Do not install any requirements. We want this to be fast and work even if # system dependencies are missing, since it's used to tell you what system # dependencies are missing! This also means that bindep must be installed # separately, outside of the requirements files, and develop mode disabled # explicitly to avoid unnecessarily installing the checked-out repo too (this # further relies on "tox.skipsdist = True" above). deps = bindep commands = bindep test usedevelop = False