-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
86 lines (70 loc) · 1.35 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
78
79
80
81
82
83
84
85
86
[tox]
envlist =
py{36,37,38}-django{111,21,22,master}
flake8
bandit
mypy
[travis]
python =
3.6: py36
3.7: py37
3.8: py38
[travis:env]
DJANGO =
1.11: django111
2.1: django21
2.2: django22
master: djangomaster
[testenv]
deps =
coverage
pillow
django111: django>=1.11,<2.0
django21: django>=2.1,<2.2
djangomaster: https://github.com/django/django/archive/master.tar.gz
setenv =
PYTHONPATH = {toxinidir}
PYTHONDONTWRITEBYTECODE=1
usedevelop = true
whitelist_externals = make
commands = make coverage
[testenv:mypy]
basepython = python3.7
usedevelop = false
deps = mypy
changedir = {toxinidir}
commands = mypy .
[testenv:bandit]
basepython = python3.7
usedevelop = false
exclude = .cache,.git,.tox,build,dist,docs,tests
skip_install = true
deps = bandit
changedir = {toxinidir}
commands = bandit . -r
[testenv:flake8]
basepython = python3.7
max-line-length = 82
skip_install = true
deps = flake8
exclude =
.cache,
.tox,
.git,
__pycache__,
docs,
build,
dist
ignore =
# H306: imports not in alphabetical order (time, os)
H306,
# E261: at least two spaces before inline comment
E261
commands = flake8
[bandit]
exclude = .cache,.git,.tox,build,dist,docs,tests
targets = .
[flake8]
exclude = .cache,.git,.tox,build,dist
basepython = python3.7
max-line-length = 82