forked from aibasel/lab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (52 loc) · 1.03 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
; Run all tests with "tox".
[tox]
envlist = py36, py37, py38, style, docs
basepython = python3
skip_missing_interpreters = true
[testenv]
deps =
pytest
commands =
bash {toxinidir}/tests/cleanup
bash {toxinidir}/tests/run-tests
bash {toxinidir}/tests/run-example-experiments
passenv =
DOWNWARD_BENCHMARKS
DOWNWARD_REPO
DOWNWARD_REVISION_CACHE
SINGULARITY_IMAGES
whitelist_externals =
bash
[testenv:docs]
skipsdist = true
deps =
sphinx
sphinx_rtd_theme
commands =
bash {toxinidir}/tests/build-docs
[testenv:style]
skipsdist = true
deps =
black
flake8
flake8-2020
flake8-bugbear
flake8-comprehensions
isort[pyproject]
pyupgrade
vulture
commands =
bash {toxinidir}/tests/find-dead-code
bash {toxinidir}/tests/check-style
[testenv:fix-style]
skipsdist = true
deps =
black
isort[pyproject]
pyupgrade
commands =
black .
isort --recursive --skip data downward/ examples/ lab/ tests/ setup.py
bash -c 'pyupgrade --py36-plus --exit-zero `find downward lab tests -name "*.py"`'
whitelist_externals =
bash