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, codespell, 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/752793 and https://review.opendev.org/752794
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 # TODO(fungi) switch to a proper PyPI dep once .codespellrc is supported in a
31 # release version, and ratchet down deprecation warnings for it at that point
33 # PYTHONWARNINGS=error
35 deps = git+https://github.com/codespell-project/codespell
36 commands = codespell {posargs}
40 commands = mudpy {posargs}
43 allowlist_externals = rm
50 python setup.py bdist_wheel sdist
55 allowlist_externals = rm
57 -r{toxinidir}/requirements.txt
58 -r{toxinidir}/doc/requirements.txt
62 sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
71 commands = flake8 {posargs}
74 [testenv:selftest_config]
75 commands = mudpy_selftest etc/mudpy.yaml
81 commands = yamllint --strict {posargs} .
86 exclude=.git,.tox,*lib/python*,*egg,build