forked from italia/spid-testenv2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
49 lines (43 loc) · 827 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
45
46
47
48
[tox]
envlist =
flake8
isort
py35
py36
py37
coverage-report
skipsdist = True
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE = True
deps =
-rrequirements_test.txt
commands =
python -V
python -b -m coverage run \
--source testenv,spid-testenv \
--parallel-mode -m pytest -v {posargs}
[testenv:coverage-report]
deps = coverage
commands =
coverage combine
coverage report
skip_install = true
[testenv:flake8]
deps = flake8
commands = flake8 spid-testenv.py testenv
skip_install = true
[testenv:isort]
deps = isort
commands = isort -c -rc -df spid-testenv.py testenv
skip_install = true
#
# Give code a consistent format.
#
[testenv:reformat]
deps =
autopep8
isort
commands =
autopep8 -ri spid-testenv.py testenv
isort -rc -y spid-testenv.py testenv