-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
44 lines (37 loc) · 989 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Tox (https://tox.readthedocs.io/) is a tool for running tests in multiple
# virtualenvs. This configuration file helps to run the test suite on all
# supported Python versions. To use it, "python -m pip install tox" and
# then run "tox" from this directory.
[tox]
skipsdist = true
envlist =
flake8
py3
# Add environment to use the default python3 installation
[testenv:py3]
basepython = python3
[testenv]
usedevelop = false
setenv =
PYTHONDONTWRITEBYTECODE=1
deps =
-rrequirements.txt
commands =
coverage run ./runtests.py --parallel {posargs}
[testenv:flake8]
basepython = python3
usedevelop = false
deps = flake8
changedir = {toxinidir}
commands = flake8 .
[flake8]
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,migrations,frontend
[testenv:isort]
basepython = python3
usedevelop = false
deps = isort
changedir = {toxinidir}
commands = isort --recursive --check-only --diff bbgo
[testenv:npm]
changedir = {toxinidir}/frontend/wc
commands = npm run build