-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
61 lines (53 loc) · 1.05 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
[tox]
envlist =
{py34,py35,py36,py37}-django1_11
{py35,py36,py37,py38}-django2_2
{py36,py37,py38}-django3
flake8
[testenv]
deps =
django1_11: Django>=1.11.17,<=2
django2_2: Django>=2.2,<3
django3: Django>=3,<3.1
pytest
pytest-django
pytest-cov
pytest-pythonpath
commands =
pytest --cov=dynamic_fixtures --cov-fail-under=85
[testenv:flake8]
skip_install = true
deps =
flake8
commands =
flake8 src tests
[testenv:black]
skip_install = true
deps =
black
commands =
black --check src tests
[testenv:isort]
skip_insall = true
deps =
isort
commands =
isort --check-only --line-width 88 --multi-line 3 --trailing-comma -rc src tests
[testenv:bandit]
skip_insall = true
deps =
bandit
commands =
bandit -r src
[testenv:linters]
skip_install = true
deps =
{[testenv:flake8]deps}
{[testenv:black]deps}
{[testenv:isort]deps}
{[testenv:bandit]deps}
commands =
{[testenv:flake8]commands}
{[testenv:black]commands}
{[testenv:isort]commands}
{[testenv:bandit]commands}