system-config/tox.ini
Andreas Jaeger 98146b48f8 Test for sorted modules as part of linting
Merge the currently not used modulesenv target into the linters
target so that we test that modules are sorted properly which is
some kind of lint. There's no need to run an extra VM just
for checking the sorting, so include it here.

Change-Id: I547c77de92a00a42ac0841b087350144e760562f
2015-12-23 20:14:57 +01:00

34 lines
595 B
INI

[tox]
minversion = 1.6
envlist = linters
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
[testenv:linters]
commands =
flake8
{toxinidir}/tools/run-bashate.sh
python {toxinidir}/tools/sorted_modules_env.py {toxinidir}/modules.env
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
show-source = True
exclude = .tox,.eggs
ignore = E125,H
select = H231
[testenv:bashate]
commands = {toxinidir}/tools/run-bashate.sh