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://github.com/pypa/setuptools/issues/2086 is fixed in a new release of
17 # Setuptools and the vendored copy in Python 3.8 and later updated with it;
18 # also that won't work for Python 3.6 due to the older Setuptools there still
19 # calling imp instead of importlib so probably not while we still support 3.6
21 PYTHONWARNINGS=default::DeprecationWarning
22 commands = mudpy_selftest mudpy/tests/fixtures/test_daemon.yaml
28 commands = bandit -r mudpy -x mudpy/tests {posargs}
35 commands = codespell {posargs}
39 commands = mudpy {posargs}
42 allowlist_externals = rm
49 python setup.py bdist_wheel sdist
54 allowlist_externals = rm
56 -r{toxinidir}/requirements.txt
57 -r{toxinidir}/doc/requirements.txt
61 sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
70 commands = flake8 {posargs}
73 [testenv:selftest_config]
74 commands = mudpy_selftest etc/mudpy.yaml
80 commands = yamllint --strict {posargs} .
85 exclude=.git,.tox,*lib/python*,*egg,build