-deps = -r{toxinidir}/test-requirements.txt
-commands = python setup.py test --slowest --testr-args='{posargs}'
+commands = mudpy_selftest mudpy/tests/fixtures/test_daemon.yaml
+
+[testenv:bandit]
+setenv =
+ PYTHONWARNINGS=error
+deps = bandit
+commands = bandit -r mudpy -x mudpy/tests {posargs}
+usedevelop = False
+
+[testenv:codespell]
+# TODO(fungi) switch to a proper PyPI dep once .codespellrc is supported in a
+# release version, and ratchet down deprecation warnings for it at that point
+#setenv =
+# PYTHONWARNINGS=error
+#deps = codespell
+deps = git+https://github.com/codespell-project/codespell
+commands = codespell {posargs}
+usedevelop = False
+
+[testenv:demo]
+commands = mudpy {posargs}
+
+[testenv:dist]
+allowlist_externals = rm
+deps =
+ pbr
+ twine
+ wheel
+commands =
+ rm -fr dist
+ python setup.py bdist_wheel sdist
+ twine check dist/*
+usedevelop = False