-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
tox.ini
42 lines (38 loc) · 814 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
[tox]
envlist =
py35-dj22,
py{36,37,38}-dj{22,30},
py{36,37,38}-djmaster,
flake8,
isort
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
basepython =
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
deps =
dj22: Django~=2.2
dj30: Django~=3.0
djmaster: https://github.com/django/django/archive/master.tar.gz
coverage~=5.1
ignore_outcome =
djmaster: True
commands =
coverage run {envbindir}/django-admin.py test -v 2 --pythonpath=./ --settings=tests.settings
coverage report
pip_pre = True
[testenv:black]
basepython = python3.8
deps = black
commands = black --check --diff .
[testenv:flake8]
basepython = python3.8
deps = flake8
commands = flake8 --count --show-source --statistics
[testenv:isort]
basepython = python3.8
deps = isort
commands = isort --check-only --diff --recursive