forked from dj-stripe/dj-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
91 lines (80 loc) · 1.76 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
87
88
89
90
91
[tox]
envlist =
py35-django{21,22}
py36-django{21,22}
py37-django{21,22,master}
py37-django22-checkmigrations
flake8
[testenv]
passenv = DJSTRIPE_*
setenv =
PYTHONWARNINGS = all
PYTEST_ADDOPTS = --cov --cov-fail-under=95
commands = pytest {posargs}
deps =
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
djangomaster: https://github.com/django/django/archive/master.tar.gz
djangorestframework
psycopg2
pytest-django
pytest-cov
[testenv:flake8]
skip_install = True
deps =
flake8
isort
commands =
flake8 {toxinidir} {posargs}
isort {toxinidir} -c
[testenv:checkmigrations]
setenv = DJSTRIPE_TEST_DB_VENDOR=sqlite
commands = ./manage.py makemigrations --check --dry-run
[testenv:makemigrations]
setenv = DJSTRIPE_TEST_DB_VENDOR=sqlite
commands = ./manage.py makemigrations
[testenv:makemessages]
whitelist_externals = mkdir
changedir = {toxinidir}/djstripe
commands =
- mkdir -p {toxinidir}/djstripe/locale
- django-admin.py makemessages {posargs}
deps =
Django>=2.2,<2.3
[testenv:docs]
changedir = docs
whitelist_externals = make
commands = make html
deps =
sphinx
sphinx_rtd_theme
sphinx-autobuild
sphinxcontrib-django
[pytest]
DJANGO_SETTINGS_MODULE = tests.settings
[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
exclude = djstripe/migrations/, .tox/, build/lib/
# TODO - stop ignoring E117 once fix for
# https://github.com/PyCQA/pycodestyle/issues/836 is released
ignore = W191, W503, E203, E117
max-line-length = 113
[isort]
default_section = THIRDPARTY
known_first_party = djstripe
multi_line_output = 5
skip = .tox/
line_length = 88
balanced_wrapping = True
indent = tab