forked from lukeburden/django-konst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
73 lines (67 loc) · 1.61 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
[flake8]
ignore = E265,E501,W391
max-line-length = 100
max-complexity = 10
exclude = docs/*
inline-quotes = double
[isort]
multi_line_output=3
known_django=django
known_third_party=
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
[coverage:run]
source = konst
omit = konst/tests/*
branch = true
data_file = .coverage
[coverage:report]
omit = konst/tests/*
show_missing = True
[tox]
envlist =
checkqa
py27-dj{18,110,111}
py34-dj{18,110,111,20}
py35-dj{18,110,111,20,21,22}
py36-dj{111,20,21,22}
py37-dj{111,20,21,22}
[testenv]
passenv =
CI CIRCLECI CIRCLE_*
CONSTANTS_DATABASE_ENGINE
CONSTANTS_DATABASE_HOST
CONSTANTS_DATABASE_NAME
CONSTANTS_DATABASE_USER
deps =
coverage
codecov
pytest
pytest-django
dj18: Django>=1.8,<1.9
dj18: djangorestframework>=3.4,<3.5
dj110: Django>=1.10,<1.11
dj110: djangorestframework>=3.7,<3.8
dj111: Django>=1.11a1,<2.0
dj111: djangorestframework>=3.7,<3.8
# adding these envs with unbounded DRF for some variation
dj20: Django<2.1
dj20: djangorestframework>=3.7
dj21: Django<2.2
dj21: djangorestframework>=3.7
dj22: Django<2.3
dj22: djangorestframework>=3.7
master: https://github.com/django/django/tarball/master
usedevelop = True
setenv =
DJANGO_SETTINGS_MODULE=konst.tests.settings
commands =
coverage run -m pytest konst/tests/tests.py {posargs}
coverage report -m --skip-covered
[testenv:checkqa]
commands =
flake8 konst
isort --recursive --check-only --diff konst -sp tox.ini
deps =
flake8 == 3.4.1
flake8-quotes == 0.11.0
isort == 4.2.15