This repository has been archived by the owner on Mar 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtox.ini
81 lines (75 loc) · 1.77 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
[tox]
envlist =
py{2,3}-{MAIN,SIDE},
py2-django{18,110,111}-{DJSIDE,DJANGO},
py3-django{18,110,111,20}-{DJSIDE,DJANGO},
flake8, security, docs, readme
[testenv]
commands =
MAIN: python run_tests.py main_tests
SIDE: python run_tests.py side_tests
DJANGO: python run_tests.py django_tests
DJSIDE: python run_tests.py djside_tests rest_tests
envdir = {toxworkdir}/venvs/{envname}
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once
deps =
# required
six
# django
django18: Django>=1.8,<1.9
django110: Django>=1.10,<1.11
django111: Django>=1.11,<1.12
django20: Django>=2.0,<2.1
# rest
django{110,111,20}: djangorestframework
django18: djangorestframework>=3.5,<3.6
# other
DJANGO: bson
{DJANGO,DJSIDE,SIDE}: cerberus
{DJANGO,DJSIDE,SIDE}: marshmallow
{DJANGO,DJSIDE,SIDE}: pyschemes
{DJANGO,DJSIDE,SIDE}: wtforms
DJANGO: PyYAML
DJANGO: tablib
# testing
py2: unittest2
[testenv:flake8]
max-line-length=120
skip_install = True
deps =
flake8
# https://github.com/PyCQA/flake8-bugbear
flake8-bugbear
# https://github.com/PyCQA/pep8-naming
pep8-naming
# https://github.com/PyCQA/flake8-commas
flake8-commas
# https://github.com/gforcada/flake8-isort
flake8-isort
commands =
flake8 {toxinidir}/djburger
[testenv:security]
skip_install = True
deps =
# https://github.com/PyCQA/bandit
bandit
commands =
bandit -r {toxinidir}/djburger
[testenv:docs]
commands =
make html
changedir = {toxinidir}/wiki/
deps =
sphinx
# https://github.com/rtfd/recommonmark
recommonmark
# https://github.com/rtfd/sphinx_rtd_theme
sphinx_rtd_theme
[testenv:readme]
skip_install = True
commands =
python setup.py check -rs
deps =
docutils