forked from ethereum/execution-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
75 lines (66 loc) · 2.13 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
65
66
67
68
69
70
71
72
73
74
[tox]
envlist = py3,pypy3
[testenv:py3]
extras =
test
lint
optimized
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
pytest -m "not slow" -n auto --maxprocesses 8 --cov=ethereum --cov-report=term --cov-report "xml:{toxworkdir}/coverage.xml" --ignore-glob='tests/fixtures/*' --ignore-glob='tests/execution-spec-generated-tests/*' --basetemp="{temp_dir}/pytest"
ethereum-spec-lint
[testenv:pypy3]
extras =
test
lint
optimized
commands =
isort src tests setup.py --check --diff --skip-glob "tests/fixtures/*"
flake8 src tests setup.py
pytest -m "not slow" -n auto --maxprocesses 8 --ignore-glob='tests/fixtures/*' --ignore-glob='tests/execution-spec-generated-tests/*' --basetemp="{temp_dir}/pytest"
ethereum-spec-lint
[testenv:doc]
basepython = python3
extras = doc
commands =
sphinx-build \
-j auto \
-t stage0 \
-d "{toxworkdir}/docs/stage0_doctree" \
doc \
"{toxworkdir}/docs/stage0_out" \
--color \
-W \
-brpickle \
{posargs}
ethereum-spec-diff \
"{toxworkdir}/docs/stage0_out/autoapi/" \
"doc/diffs"
sphinx-build \
-j auto \
-t stage1 \
-d "{toxworkdir}/docs/stage1_doctree" \
doc \
"{toxworkdir}/docs/stage1_out" \
--color \
-W \
-bhtml \
{posargs}
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs" / "stage1_out" / "index.html"))'
[testenv:doc-autobuild]
basepython = python3
extras =
doc
doc-autobuild
commands =
sphinx-autobuild doc --watch src "{toxworkdir}/docs_out" {posargs}
[testenv:optimized]
extras =
test
optimized
commands =
pytest -m "not slow" -n auto --maxprocesses 8 --ignore-glob='tests/fixtures/*' --ignore-glob='tests/execution-spec-generated-tests/*' --basetemp="{temp_dir}/pytest" --optimized