This repository has been archived by the owner on Nov 3, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
57 lines (51 loc) · 1.35 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
[tox]
envlist =
py27, py35, py36, py37, py38,
; https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
py27-django111,
py35-django{111,20,21,22},
py36-django{111,20,21,22},
py37-django{111,20,21,22},
coverage, docs, flake8, mypy
[travis]
python =
2.7: py27, py27-django111, coverage, docs, flake8
3.5: py35, py35-django{111,20,21,22}, coverage, docs
3.6: py36, py36-django{111,20,21,22}
3.7: py37, py37-django{111,20,21,22}
3.8: py38, flake8, mypy
[testenv]
deps =
django111: Django>=1.11,<1.12
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
commands =
pip install -e .[test]
pytest tests/core
django{111,20,21,22}: python tests/django/runtests.py
passenv = CHANNELS_* TRAVIS TRAVIS_BRANCH TRAVIS_JOB_ID
[testenv:coverage]
deps =
Django>=1.11,<1.12
commands =
pip install -e .[test]
coverage erase
pytest --cov=kawasemi tests/core
coverage run -a tests/django/runtests.py
coverage report
coveralls
[testenv:docs]
changedir = docs
commands =
pip install -e ..[docs]
make html
[testenv:flake8]
commands =
pip install -e .[test]
flake8 kawasemi/
[testenv:mypy]
commands =
pip install -e .[test]
mypy --ignore-missing-imports --py2 kawasemi
mypy --ignore-missing-imports kawasemi