a784f1a191
The tox option to skip source distribution building is skipsdist, but this seems to be often misspelled skipdist instead, which gets silently ignored and so does not take effect. Correct it everywhere, in hopes that new projects will finally stop copying this mistake around. See https://tox.readthedocs.io/en/latest/config.html#conf-skipsdist and https://github.com/tox-dev/tox/issues/1388 for details. Change-Id: Iac474f1d458c3b803eb28a33bd05002db31c4689
65 lines
1.7 KiB
INI
65 lines
1.7 KiB
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = docs, linters
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
whitelist_externals = bash
|
|
|
|
[testenv:bindep]
|
|
basepython = python3
|
|
# 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.
|
|
deps = bindep
|
|
commands = bindep test
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
commands =
|
|
# Run hacking/flake8 check for all python files
|
|
bash -c "git ls-files | grep -v releasenotes | xargs grep --binary-files=without-match \
|
|
--files-with-match '^.!.*python$' \
|
|
--exclude-dir .tox \
|
|
--exclude-dir .git \
|
|
--exclude-dir .eggs \
|
|
--exclude-dir *.egg-info \
|
|
--exclude-dir dist \
|
|
--exclude-dir *lib/python* \
|
|
--exclude-dir doc \
|
|
| xargs flake8 --verbose"
|
|
|
|
[testenv:ansible-lint]
|
|
basepython = python3
|
|
commands = ansible-lint
|
|
|
|
[testenv:linters]
|
|
basepython = python3
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/ansible-requirements.txt
|
|
commands =
|
|
{[testenv:pep8]commands}
|
|
{[testenv:ansible-lint]commands}
|
|
|
|
[testenv:releasenotes]
|
|
basepython = python3
|
|
whitelist_externals = bash
|
|
commands = bash -c ci-scripts/releasenotes_tox.sh
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
# E265 deals withs paces inside of comments
|
|
show-source = True
|
|
ignore = E123,E125,E265
|
|
builtins = _
|