forked from dj-stripe/dj-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (37 loc) · 836 Bytes
/
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
[tox]
envlist =
py27-django{110,111}
py34-django{110,111}
py35-django{110,111,master}
py36-django{110,111,master}
flake8
checkmigrations
[testenv]
setenv =
PYTHONWARNINGS = all
commands = python runtests.py {posargs}
deps =
-r{toxinidir}/tests/requirements.txt
django110: Django>=1.10,<1.11
django111: Django>=1.11,<2.0
djangomaster: https://github.com/django/django/archive/master.tar.gz
[testenv:flake8]
skip_install = True
deps = flake8
commands = flake8 {toxinidir} {posargs}
[testenv:checkmigrations]
commands = python makemigrations.py --check
[coverage:run]
branch = True
source = djstripe
omit =
djstripe/migrations/*
djstripe/management/*
djstripe/admin.py
djstripe/checks.py
[coverage:html]
directory = cover
[flake8]
max-complexity = 10
max-line-length = 119
exclude = .venv, djstripe/migrations/, .tox