-
Notifications
You must be signed in to change notification settings - Fork 240
/
tox.ini
64 lines (59 loc) · 1.53 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
64
[tox]
min_version = 2.0
envlist = py3,pypy3,static
[testenv:static]
extras =
lint
optimized
test
doc
commands =
isort src tests setup.py --check --diff --skip-glob "tests/fixtures/*"
black src tests setup.py --check --diff --exclude "tests/fixtures/*"
flake8 src tests setup.py
mypy src tests setup.py --exclude "tests/fixtures/*" --namespace-packages
ethereum-spec-lint
[testenv:py3]
extras =
test
commands =
pytest \
-m "not slow" \
-n auto --maxprocesses 5 \
--cov=ethereum --cov-report=term --cov-report "xml:{toxworkdir}/coverage.xml" \
--ignore-glob='tests/fixtures/*' \
--basetemp="{temp_dir}/pytest"
[testenv:pypy3]
extras =
test
passenv =
PYPY_GC_MAX
commands =
pytest \
--tb=no \
--show-capture=no \
--disable-warnings \
-m "not slow" \
-n auto --maxprocesses 2 \
--ignore-glob='tests/fixtures/*' \
--basetemp="{temp_dir}/pytest"
[testenv:optimized]
extras =
test
optimized
passenv =
PYPY_GC_MAX
commands =
pytest \
-m "not slow and not evm_tools" \
-n auto --maxprocesses 5 \
--ignore-glob='tests/fixtures/*' \
--ignore-glob='tests/test_t8n.py' \
--basetemp="{temp_dir}/pytest" \
--optimized
[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"))'