-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
63 lines (56 loc) · 1.26 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
60
61
62
63
[tox]
envlist = pyre,black,flake8,pylint,{py37,py38,py39,py310,py311,py312}-test,build-doc
skip_missing_interpreters = true
[testenv]
setenv =
package = aiodnsprox
deps =
build-doc: {[testenv:build-doc]deps}
pyre: {[testenv:pyre]deps}
black: {[testenv:black]deps}
pylint: {[testenv:pylint]deps}
flake8: {[testenv:flake8]deps}
test: {[testenv:test]deps}
commands =
build-doc: {[testenv:build-doc]commands}
pyre: {[testenv:pyre]commands}
black: {[testenv:black]commands}
pylint: {[testenv:pylint]commands}
flake8: {[testenv:flake8]commands}
test: {[testenv:test]commands}
[testenv:build-doc]
deps =
sphinx
sphinx-readable-theme
commands =
sphinx-build -M html docs/source docs/build -W
[testenv:pyre]
deps =
pyre-check
-rrequirements.txt
commands =
pyre -n
[testenv:test]
deps =
pytest
pytest-asyncio
pytest-cov
pytest-mock
commands =
pytest {posargs}
[testenv:black]
deps =
black
-rrequirements.txt
commands =
black --check --diff .
[testenv:pylint]
deps =
pylint
pytest
commands =
pylint {envsitepackagesdir}/{env:package}
[testenv:flake8]
deps = flake8
commands =
flake8 {envsitepackagesdir}/{env:package}