forked from quilt/eth1.0-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
29 lines (26 loc) · 950 Bytes
/
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
[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=eth1spec --cov-report=term --cov-report "xml:{toxworkdir}/coverage.xml" --ignore-glob='tests/fixtures/*'
[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/*'
[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"))'