Debian Codegraph @

tox.ini

raw
1 [tox]
2 envlist = py38,py39,py310,codestyle,dist-check,sort,security,docs
3 skip_missing_interpreters = True
4
5 [testenv]
6 deps =
7 pytest
8 slackclient>=1.0.5,<2.0
9
10 commands = pytest -v tests/
11 recreate = true
12
13 [testenv:codestyle]
14 deps = black
15 commands =
16 black --check errbot/ tests/ tools/
17
18 [testenv:dist-check]
19 deps =
20 twine
21 commands =
22 python setup.py sdist
23 twine check {toxinidir}/dist/*
24
25 [testenv:sort]
26 deps =
27 isort
28 commands = isort --check-only errbot/
29
30 [testenv:security]
31 deps =
32 bandit
33
34 ; ignoring errors
35 commands =
36 - bandit -r errbot/
37
38 [testenv:docs]
39 changedir = docs
40 deps = -r docs/requirements.txt
41 commands =
42 sphinx-build -b html -d _build/doctrees . _build/html