forked from dj-stripe/dj-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
59 lines (49 loc) · 1.31 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
[tox]
isolated_build = True
envlist =
django42-py{39,310,311,312}-{postgres,mysql,sqlite}
django50-py{310,311,312}-{postgres,mysql,sqlite}
# Django mainline - Only test on latest python / postgres
djangomain-py312-postgres
skip_missing_interpreters = True
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[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
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
djangomain: https://github.com/django/django/archive/main.tar.gz
pytest-django
pytest-cov
[pytest]
DJANGO_SETTINGS_MODULE = tests.settings
markers =
stripe_api: mark a test as using Stripe API.
[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