-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
70 lines (64 loc) · 1.31 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
[tox]
envlist =
python3.7
isort
flake8
coverage
black
mypy
skipsdist = True
[testenv]
deps =
-r{toxinidir}/requirements/test.txt
-r{toxinidir}/requirements/coverage.txt
whitelist_externals =
/usr/bin/make
setenv =
DJANGO_SETTINGS_MODULE = itdagene.settings
PYTHONPATH = {toxinidir}:{toxinidir}
LC_ALL = en_US.UTF-8
LANG = en_US.UTF-8
commands =
coverage run --source=itdagene {toxinidir}/manage.py test
[testenv:isort]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
LC_ALL = en_US.UTF-8
LANG = en_US.UTF-8
deps =
-r{toxinidir}/requirements/isort.txt
commands =
isort itdagene
[testenv:black]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
LC_ALL = en_US.UTF-8
LANG = en_US.UTF-8
deps =
-r{toxinidir}/requirements/black.txt
commands =
black itdagene
[testenv:flake8]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
LC_ALL = en_US.UTF-8
LANG = en_US.UTF-8
deps =
-r{toxinidir}/requirements/flake8.txt
commands =
flake8
[testenv:coverage]
deps =
-r{toxinidir}/requirements/coverage.txt
commands =
coverage report
coverage xml
[testenv:mypy]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
LC_ALL = en_US.UTF-8
LANG = en_US.UTF-8
deps =
-r{toxinidir}/requirements/mypy.txt
commands =
mypy itdagene