forked from pyepye/django-amplitude
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
54 lines (43 loc) · 813 Bytes
/
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 =
lint
mypy
py36-django{21,22,30,31,32}
py37-django{21,22,30,31,32}
py38-django{22,30,31,32}
py39-django{30,31,32}
[testenv]
deps =
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
pytest-cov
pytest-mock
pytest-django
pytest-freezegun
coverage
commands =
pytest tests/
[testenv:lint]
deps =
flake8
isort[pyproject]
commands =
flake8 ./
isort . --check-only
[testenv:mypy]
deps =
mypy
packaging
django-stubs
commands =
mypy amplitude/
[pytest]
DJANGO_SETTINGS_MODULE = tests.settings
python_files = tests.py test_*.py *_tests.py
addopts =
--cov=amplitude
--cov-report html