-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
77 lines (67 loc) · 1.65 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[pytest]
addopts= --verbose --showlocals --tb=short --ds=main.settings
basepython = python3
cache_dir = .cache/pytest
filterwarnings =
ignore::urllib3.exceptions.InsecureRequestWarning
[tox]
basepython = python3
envlist = lint,isort-check,isort-fix,py38
skipsdist = true
[testenv]
basepython = python3
skipsdist = True
passenv =
PYTHONPATH
DOCKER_ENV
commands =
pip3 install pytest
python3 -m pytest -v src/tests --cov-report=term-missing --cov=src {posargs}
deps =
-rrequirements.txt
-rrequirements/requirements-testing.txt
[lint]
commands =
deps =
flake8
isort
[testenv:lint]
commands =
# commands = flake8 src
deps = flake8
envdir = {toxworkdir}/lint
[testenv:docs]
basepython = python3
commands =
# sphinx-build -b html {toxinidir}/docs {toxinidir}/docs/_build/html
[testenv:isort-check]
commands =
# commands = isort -rc -c src
deps = isort
envdir = {toxworkdir}/lint
[testenv:isort-fix]
commands =
# commands = isort -rc src
deps = isort
[testenv:latest38]
basepython = python3
recreate = True
deps =
-rrequirements/requirements-base.txt
-rrequirements/requirements-testing.txt
[testenv:dev]
basepython = python3
recreate = True
commands =
pip install -r requirements/requirements-dev.txt
py.test src/tests --cov-report=term-missing --cov-report=html --cov-report=xml --cov=src {posargs}
deps =
-rrequirements/requirements-base.txt
-rrequirements/requirements-testing.txt
[testenv:requirements_txt]
basepython = python3
recreate = True
whitelist_externals = /bin/bash
commands = /bin/bash -c "pip freeze -r requirements/requirements-base.txt > requirements.txt"
deps =
-rrequirements/requirements-base.txt