Safely log when a command error cannot be sent
[mudpy.git] / tox.ini
1 # Copyright (c) 2016-2019 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.
4
5 [tox]
6 minversion = 3.1
7 envlist = bandit, dist, docs, flake8, yamllint, selftest_config, py3
8 skipsdist = True
9 ignore_basepython_conflict = True
10
11 [testenv]
12 basepython = python3
13 usedevelop = True
14 install_command = pip install {opts} {packages}
15 setenv =
16     PYTHONWARNINGS=default::DeprecationWarning
17 commands = mudpy_selftest mudpy/tests/fixtures/test_daemon.yaml
18
19 [testenv:bandit]
20 deps = bandit
21 commands = bandit -lll -r mudpy -x mudpy/tests {posargs}
22
23 [testenv:demo]
24 commands = mudpy {posargs}
25
26 [testenv:dist]
27 whitelist_externals = rm
28 deps =
29     pbr
30     twine
31     wheel
32 commands =
33     rm -fr dist
34     python setup.py bdist_wheel sdist
35     twine check dist/*
36
37 [testenv:docs]
38 whitelist_externals = rm
39 deps = -r{toxinidir}/doc/requirements.txt
40 commands =
41     rm -fr doc/build
42     python setup.py sdist
43     sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
44
45 [testenv:flake8]
46 deps =
47     flake8
48     flake8-bugbear
49 commands = flake8 {posargs}
50
51 [testenv:selftest_config]
52 commands = mudpy_selftest etc/mudpy.yaml
53
54 [testenv:yamllint]
55 deps = yamllint
56 commands = yamllint --strict {posargs} .
57
58 [flake8]
59 show-source = True
60 exclude=.git,.tox,*lib/python*,*egg,build