-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
55 lines (50 loc) · 1.34 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
[travis]
python =
3.7: py37, latest
3.6: py36, minimal, docs, lint
[testenv:latest]
basepython = python3.7
deps =
-r{toxinidir}/ci/requirements_latest.txt
commands =
py.test --basetemp={envtmpdir}
[testenv:minimal]
basepython = python3.6
deps =
pandas
pytest
commands =
py.test --basetemp={envtmpdir}
[testenv:lint]
basepython = python3.6
deps =
flake8
black==19.10b0
isort
twine
commands =
flake8 rigid_body_motion tests --ignore=E203,W503,W504 --exclude=**/externals
black --check .
isort -c .
python setup.py install sdist
twine check dist/*
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.6
deps =
-r{toxinidir}/ci/requirements_docs.txt
commands =
python3 -m IPython kernel install --prefix "{toxworkdir}/docs" # fix missing kernelspec
sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" --color -bhtml -bdoctest {posargs}
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
[testenv]
basepython =
py37: python3.7
py36: python3.6
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements_dev.txt
-r{toxinidir}/requirements.txt
commands =
py.test --basetemp={envtmpdir} --cov=rigid_body_motion