forked from dj-stripe/dj-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
54 lines (45 loc) · 1.18 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
[tox]
isolated_build = True
envlist =
py{38,39}-django{32,40,41,main}-{postgres,mysql,sqlite}
py310-django{32,40,41,main}-{postgres,mysql,sqlite}
skip_missing_interpreters = True
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
[testenv]
passenv = DJSTRIPE_*
setenv =
postgres: DJSTRIPE_TEST_DB_VENDOR=postgres
mysql: DJSTRIPE_TEST_DB_VENDOR=mysql
sqlite: DJSTRIPE_TEST_DB_VENDOR=sqlite
PYTHONWARNINGS = all
PYTEST_ADDOPTS = --cov --cov-fail-under=90 --cov-report=html --cov-report=term --no-cov-on-fail
commands = pytest {posargs}
deps =
postgres: psycopg2>=2.9
mysql: mysqlclient>=1.4.0
django32: Django==3.2,<3.3
django40: Django==4.0,<4.1
django41: Django==4.1,<4.2
djangomain: https://github.com/django/django/archive/main.tar.gz
pytest-django
pytest-cov
[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]
exclude = djstripe/migrations/, .tox/, build/lib/, .venv/
ignore = W191, W503, E203, E501
max-line-length = 88