-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
80 lines (72 loc) · 1.34 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
[tox]
passenv = *
requires = tox-conda
envlist =
isort
py{39,310}-django{40,41}
black
mypy
skip_missing_interpeters = true
[gh-actions]
python =
3.9: py39
3.10: py310
[gh-actions:env]
DJANGO =
4.0: django40
4.1: django41
[testenv]
setenv =
DJANGO_SETTINGS_MODULE=testapp.settings
PYTHONPATH={toxinidir}
passenv = *
extras =
tests
coverage
deps =
pytest
google-api-python-client
google_auth_oauthlib
django40: Django~=4.0.0
django41: Django~=4.1.0
pytz
rfc3339
commands =
pytest tests \
--junitxml=reports/junit.xml \
--cov --cov-report xml:reports/coverage-{envname}.xml \
{posargs}
allowlist_externals = pytest
[testenv:isort]
extras = tests
skipsdist = True
commands = isort --check-only --diff .
allowlist_externals = isort
[testenv:black]
extras = tests
skipsdist = True
commands = black --check setup.py
allowlist_externals = black
[testenv:flake8]
extras = tests
skipsdist = True
commands = flake8 .
allowlist_externals = flake8
[testenv:mypy]
extras = tests
passenv = *
deps =
pytest
google-api-python-client
django-stubs
google_auth_oauthlib
django40: Django~=4.0.0
django41: Django~=4.1.0
types-python-dateutil
types-requests
setenv =
{[testenv]setenv}
MYPYPATH={toxinidir}
commands =
mypy --config-file setup.cfg -p cal_sync_magic
allowlist_externals = mypy