forked from zelenij/django-bootstrap-v5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
43 lines (39 loc) · 1.04 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
[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 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
[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