-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
47 lines (39 loc) · 1.01 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
[pytest]
addopts=--tb=short
[tox]
envlist = lint,isort-check,isort-fix,black-check,black-fix,py27,py36,py37
skipsdist = true
[testenv]
passenv = *
commands =
py.test tests --cov-report=term-missing --cov-append --cov=settings_vial {posargs}
# due to https://github.com/pytest-dev/pytest-cov/issues/175 pytest-cov generates sonar qube incompatible reports
coverage xml -i
deps =
--editable={toxinidir}
-r{toxinidir}/requirements.txt
[lint]
deps =
flake8
isort
black
[testenv:lint]
commands = flake8 settings_vial tests
deps = {[lint]deps}
envdir = {toxworkdir}/lint
[testenv:isort-check]
commands = isort -c settings_vial tests
deps = {[lint]deps}
envdir = {toxworkdir}/lint
[testenv:isort-fix]
commands = isort settings_vial tests
deps = {[lint]deps}
envdir = {toxworkdir}/lint
[testenv:black-check]
commands = black --check settings_vial tests
deps = {[lint]deps}
envdir = {toxworkdir}/lint
[testenv:black-fix]
commands = black -v settings_vial tests
deps = {[lint]deps}
envdir = {toxworkdir}/lint