-
Notifications
You must be signed in to change notification settings - Fork 183
/
tox.ini
59 lines (48 loc) · 1.99 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[tox]
envlist = 3.12,3.11,3.10,3.9,3.8,flake8,apicheck,configcheck,typecheck,docstyle,bandit,spell
[testenv]
deps=
-r{toxinidir}/requirements/requirements.txt
-r{toxinidir}/requirements/test.txt
-r{toxinidir}/requirements/ci.txt
linkcheck,apicheck,configcheck: -r{toxinidir}/requirements/docs.txt
spell: -r{toxinidir}/requirements/spell.txt
flake8,docstyle: -r{toxinidir}/requirements/dist.txt
bandit: bandit
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
sitepackages = False
recreate = False
commands = py.test --random-order --open-files -xvv --cov=faust tests/unit tests/functional tests/integration tests/meticulous/ tests/regression
basepython =
3.12,flake8,apicheck,linkcheck,configcheck,typecheck,docstyle,bandit,spell: python3.12
3.11,flake8,apicheck,linkcheck,configcheck,typecheck,docstyle,bandit,spell: python3.11
3.10,flake8,apicheck,linkcheck,configcheck,typecheck,docstyle,bandit,spell: python3.10
3.9,flake8,apicheck,linkcheck,configcheck,typecheck,docstyle,bandit,spell: python3.9
3.8,flake8,apicheck,linkcheck,configcheck,typecheck,docstyle,bandit,spell: python3.8
[testenv:apicheck]
setenv =
APICHECK=1
commands =
sphinx-build -b apicheck -d {envtmpdir}/doctrees2 docs docs/_build/apicheck
[testenv:configcheck]
commands =
sphinx-build -b configcheck -d {envtmpdir}/doctrees2 docs docs/_build/configcheck
python extra/tools/verify_doc_defaults.py
[testenv:linkcheck]
commands =
sphinx-build -b linkcheck -d {envtmpdir}/doctrees2 docs docs/_build/linkcheck
[testenv:spell]
commands =
env SPELLCHECK=1 sphinx-build -b spelling -d {envtmpdir}/doctrees2 docs docs/_build/spell
[testenv:flake8]
commands =
flake8 {toxinidir}/faust {toxinidir}/t {toxinidir}/examples
[testenv:typecheck]
commands =
mypy -p faust
[testenv:docstyle]
commands =
pydocstyle --match-dir '(?!types|assignor)' faust
[testenv:bandit]
commands =
bandit -b extra/bandit/baseline.json -c extra/bandit/config.yaml -r faust