1 # Copyright (c) 2016-2020 mudpy authors. Permission to use, copy,
2 # modify, and distribute this software is granted under terms
3 # provided in the LICENSE file distributed with this software.
7 envlist = bandit, dist, docs, flake8, yamllint, selftest_config, py3
9 ignore_basepython_conflict = True
14 install_command = pip install {opts} {packages}
15 # TODO(fungi) Switch this to "error" and remove env-specific copies once
16 # https://review.opendev.org/735433 and https://review.opendev.org/735443
17 # merge and appear in a new PBR release
19 PYTHONWARNINGS=default::DeprecationWarning
20 commands = mudpy_selftest mudpy/tests/fixtures/test_daemon.yaml
26 commands = bandit -r mudpy -x mudpy/tests {posargs}
30 commands = mudpy {posargs}
33 whitelist_externals = rm
40 python setup.py bdist_wheel sdist
47 whitelist_externals = rm
49 -r{toxinidir}/requirements.txt
50 -r{toxinidir}/doc/requirements.txt
54 sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
63 commands = flake8 {posargs}
66 [testenv:selftest_config]
67 commands = mudpy_selftest etc/mudpy.yaml
73 commands = yamllint --strict {posargs} .
78 exclude=.git,.tox,*lib/python*,*egg,build