forked from ethereum/execution-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (35 loc) · 1.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
[tox]
envlist = py3,pypy3
[testenv]
extras =
test
lint
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/*"
pytest --cov=ethereum --cov-report=term --cov-report "xml:{toxworkdir}/coverage.xml" --ignore-glob='tests/fixtures/*'
ethereum-spec-lint
[testenv:pypy3]
extras =
test
lint
commands =
isort src tests setup.py --check --diff --skip-glob "tests/fixtures/*"
flake8 src tests setup.py
pytest --ignore-glob='tests/fixtures/*'
ethereum-spec-lint
[testenv:doc]
basepython = python3
extras = doc
commands =
sphinx-build -d "{toxworkdir}/docs_doctree" doc "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
[testenv:doc-autobuild]
basepython = python3
extras =
doc
doc-autobuild
commands =
sphinx-autobuild doc --watch src "{toxworkdir}/docs_out" {posargs}