-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
44 lines (40 loc) · 1.01 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
[tox]
min_version = 2.0
envlist = py3,pypy3,static
[testenv:static]
extras =
lint
test
commands =
isort src tests setup.py --check --diff
black src tests setup.py --check --diff
flake8 src tests setup.py
mypy src tests setup.py --namespace-packages
[testenv:py3]
extras =
test
commands =
pytest \
--cov-fail-under=100 \
-n auto --maxprocesses 5 \
--cov=ethereum_types --cov-report=term --cov-report "xml:{toxworkdir}/coverage.xml" \
--basetemp="{temp_dir}/pytest"
[testenv:pypy3]
extras =
test
passenv =
PYPY_GC_MAX
commands =
pytest \
--cov-fail-under=100 \
--tb=no \
--show-capture=no \
--disable-warnings \
-n auto --maxprocesses 2 \
--basetemp="{temp_dir}/pytest"
[testenv:doc]
basepython = python3
extras = doc
commands =
docc --output "{toxworkdir}/docs"
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs" / "index.html"))'