forked from bugsnag/bugsnag-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
76 lines (73 loc) · 2.51 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
[tox]
envlist=
py{35,36,37,38,39,310}-{test,celery4,requests,flask,tornado,wsgi,bottle},
py{36,37,38,39,310}-{asgi,celery5},
py{35,36,37}-django{18,19,110,111}
py{35,36,37,38,39,310}-django{20,21,22}
py{36,37,38,39,310}-django3
py{38,39,310}-{asynctest,threadtest}
py{35,38,39,310}-{lint}
[pytest]
testpaths = tests
addopts = --cov=bugsnag --cov-report html --cov-append --cov-report term
[testenv]
passenv = TRAVIS TRAVIS_*
setenv =
PYTHONPATH = {toxinidir}
COVERAGE_FILE=.coverage.{envname}
django{18,19,110,111,20,21,22}: PYTHONPATH=tests/fixtures/django1{:}{toxinidir}
django3: PYTHONPATH=tests/fixtures/django30{:}{toxinidir}
django{18,19,110,111,20,21,22,3}: DJANGO_SETTINGS_MODULE=todo.settings
basepython =
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
whitelist_externals=
{toxinidir}/scripts/lint.sh
deps=
.
pytest
pytest-cov
requests: requests
wsgi: webtest==2.0.23
asgi: starlette==0.13.6
asgi: requests
bottle: webtest==2.0.23
bottle: bottle==0.12.18
celery4: celery>=4,<5
celery5: celery>=5,<6
celery5: pytest-celery
flask: flask
flask: blinker
tornado: tornado
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django>=1.10,<1.11
django111: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2,<3.0
django3: Django>=3.0,<4.0
django{18,19,110,111,20,21}: six
django{18,19,110,111,20,21}: pytest-django<4.0
django{22,3}: pytest-django
lint: flake8
lint: mypy
commands =
pytest --doctest-modules bugsnag --doctest-ignore-import-errors
test: pytest --ignore=tests/integrations
asynctest: pytest tests/integrations/test_async_asgi.py tests/integrations/test_async_request.py
threadtest: pytest tests/integrations/test_thread_excepthook.py
requests: pytest --ignore=tests/integrations tests tests/integrations/test_requests_delivery.py
bottle: pytest tests/integrations/test_bottle.py
celery{4,5}: pytest tests/integrations/test_celery.py
wsgi: pytest tests/integrations/test_wsgi.py
asgi: pytest tests/integrations/test_asgi.py
flask: pytest tests/integrations/test_flask.py
django{18,19,110,111,20,21,22,3}: pytest tests/integrations/test_django.py
tornado: pytest tests/integrations/test_tornado.py
lint: flake8 bugsnag tests example --exclude 'venv*'
lint: mypy --ignore-missing-imports bugsnag