forked from ethereum/execution-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
68 lines (61 loc) · 2.02 KB
/
Copy pathtox.ini
File metadata and controls
68 lines (61 loc) · 2.02 KB
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
[tox]
envlist = py3,pypy3
[testenv]
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 and not bigmem" -n 2 --cov=ethereum --cov-report=term --cov-report "xml:{toxworkdir}/coverage.xml" --ignore-glob='tests/fixtures/*' --basetemp="{temp_dir}/pytest"
pytest -m bigmem --cov=ethereum --cov-report=term --cov-report "xml:{toxworkdir}/coverage.xml" --cov-append --ignore-glob='tests/fixtures/*' --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 and not bigmem" -n 2 --ignore-glob='tests/fixtures/*' --basetemp="{temp_dir}/pytest"
pytest -m bigmem --ignore-glob='tests/fixtures/*' --basetemp="{temp_dir}/pytest"
ethereum-spec-lint
[testenv:doc]
basepython = python3
extras = doc
commands =
sphinx-build \
-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" \
--compare-sections-normally
sphinx-build \
-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}