forked from jazzband/djangorestframework-simplejwt
-
Notifications
You must be signed in to change notification settings - Fork 12
/
tox.ini
49 lines (45 loc) · 1.14 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
[tox]
envlist=
py36-django20-drf{38,39}
py37-django21-drf{39,310}
py37-django22-drf{39,310}
py37-djangomaster-drf310
lint
[flake8]
ignore=E501
[isort]
include_trailing_comma=True
known_third_party=hypothesis,pytest,jose
known_first_party=rest_framework_simplejwt
[testenv]
usedevelop=True
commands=
pytest {posargs:tests} --cov=rest_framework_simplejwt
commands_post=
py37-django22-drf310: codecov -e TOXENV
basepython=
py36: python3.6
py37: python3.7
extras=
test
python-jose
setenv=
PYTHONDONTWRITEBYTECODE=1
passenv=
CODECOV_TOKEN
deps=
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
drf38: djangorestframework>=3.8,<3.9
drf39: djangorestframework>=3.9,<3.10
drf310: djangorestframework>=3.10,<3.11
py37-django22-drf310: codecov
djangomaster: https://github.com/django/django/archive/master.tar.gz
whitelist_externals=make
[testenv:lint]
basepython=python3.7
extras=lint
commands=
flake8 {toxinidir}/rest_framework_simplejwt {toxinidir}/tests
isort --recursive --check-only --diff {toxinidir}/rest_framework_simplejwt {toxinidir}/tests