forked from argoverse/argoverse-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
58 lines (50 loc) · 1.2 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
[tox]
envlist =
clean,py3{7,8}
[testenv]
deps =
pytest
pytest-cov
mypy
flake8
flake8-logging-format
flake8-string-format
commands =
pytest tests --cov argoverse --cov-append --cov-branch --cov-report=term-missing
flake8 --max-line-length 120 --ignore E203,E704,E711,E722,E741,W291,W293,W391,W503,F821,F401,F811,F841,P101,G004,G002,I201,I100,I101 --enable-extensions G argoverse
mypy --ignore-missing --strict argoverse
depends =
py3{7,8}: clean
[testenv:coverage]
deps = coverage
skip_install = true
commands =
coverage report
depends = py3{7,8}
[testenv:coverage-ci]
deps = coverage
skip_install = true
commands =
coverage xml
depends = py3{7,8}
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:sphinx]
deps =
sphinx
sphinx_rtd_theme
recommonmark
mayavi
sphinx-autodoc-typehints
whitelist_externals =
mkdir
commands =
- mkdir {toxinidir}/sphinx/source
sphinx-build -d {toxworkdir}/docs_doctree -c {toxinidir}/sphinx {toxinidir}/sphinx/source {toxinidir}/docs {posargs}
[testenv:sphinx-serve]
skip_install = true
commands =
python3 -m http.server --directory {toxinidir}/docs {posargs}
depends = sphinx