forked from zostera/django-bootstrap3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (45 loc) · 1.17 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
[tox]
isolated_build = true
envlist =
lint
{py36}-{django22,django30,django31,djangomaster}
{py37}-{django22,django30,django31,djangomaster}
{py38}-{django30,django31,djangomaster}
{py39}-{django30,django31,djangomaster}
docs
[testenv]
setenv =
PYTHONWARNINGS=all
whitelist_externals =
make
poetry
commands =
poetry install -v
poetry run coverage run --parallel-mode --source bootstrap3 manage.py test -v1 --noinput
deps =
django22: Django==2.2.*
django30: Django==3.0.*
django31: Django==3.1.*
djangomaster: https://github.com/django/django/archive/master.tar.gz
[testenv:lint]
commands =
poetry install -v
poetry run make lint
[testenv:docs]
commands =
poetry install -v --no-dev --extras docs
poetry run make docs
[travis]
python :
3.6: py36
3.7: py37
3.8: py38, docs, flake8, coverage-erase, coverage-report
3.9: py39
[flake8]
# flake8 does not support pyproject.toml, so we use tox.ini
# E731 do not assign a lambda expression
# W503 line break before binary operator (black introduces these)
# E203 whitespace before ':'
ignore = E731,W503,E203
exclude = .git,.tox,__pycache__
max-line-length = 120