tripleo-upgrade/tox.ini
caoyuan b8232161c0 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I6725bdc2eff5a367b46075c2bf8baa8f2edbabe5
2019-06-02 12:50:37 +00:00

57 lines
1.4 KiB
INI

[tox]
minversion = 2.0
envlist = linters
skipdist = True
[testenv]
usedevelop = True
install_command = pip install -c{env:UPPER_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:bashate]
envdir = {toxworkdir}/linters
commands =
python -m pre_commit run bashate --all-files
[testenv:pep8]
envdir = {toxworkdir}/linters
commands =
python -m pre_commit run flake8 --all-files
[testenv:ansible-lint]
envdir = {toxworkdir}/linters
commands =
python -m pre_commit run ansible-lint -a
[testenv:releasenotes]
basepython = python3
whitelist_externals = bash
commands = bash -c ci-scripts/releasenotes_tox.sh
[testenv:linters]
commands =
# check only modified files:
python -m pre_commit run --source HEAD^ --origin HEAD
[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 = _