-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtox.ini
35 lines (31 loc) · 851 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
[tox]
skipsdist = true
envlist = py36,lint,docker-build
[testenv]
setenv = PYTHONPATH = {toxinidir}/dropbox-upload
changedir=tests
deps =
-rdropbox-upload/requirements.txt
-rtest-requirements.txt
commands=
pytest -v --basetemp={envtmpdir} \
--cov=dropbox_upload --cov-fail-under=85 --cov-report=term-missing {posargs}
[testenv:format]
basepython=python3
deps = black
commands=black {toxinidir}
[testenv:lint]
basepython=python3
deps =
-rtest-requirements.txt
commands=
pyflakes {toxinidir}/dropbox-upload {toxinidir}/tests
black --check {toxinidir}/dropbox-upload {toxinidir}/tests
isort --check-only --diff --recursive {toxinidir}/dropbox-upload {toxinidir}/tests
[testenv:docker-build]
passenv=
ARCH
whitelist_externals=
{toxinidir}/scripts/docker-build.sh
commands=
{toxinidir}/scripts/docker-build.sh {toxinidir}