Test with the bugbear plugin for flake8
[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 = 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:demo]
20 commands = mudpy {posargs}
21
22 [testenv:dist]
23 whitelist_externals = rm
24 deps =
25     pbr
26     twine
27     wheel
28 commands =
29     rm -fr dist
30     python setup.py bdist_wheel sdist
31     twine check dist/*
32
33 [testenv:docs]
34 whitelist_externals = rm
35 deps = -r{toxinidir}/doc/requirements.txt
36 commands =
37     rm -fr doc/build
38     python setup.py sdist
39     sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
40
41 [testenv:flake8]
42 deps =
43     flake8
44     flake8-bugbear
45 commands = flake8 {posargs}
46
47 [testenv:selftest_config]
48 commands = mudpy_selftest etc/mudpy.yaml
49
50 [testenv:yamllint]
51 deps = yamllint
52 commands = yamllint --strict {posargs} .
53
54 [flake8]
55 show-source = True
56 exclude=.git,.tox,*lib/python*,*egg,build