forked from yourlabs/django-autocomplete-light
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
62 lines (54 loc) · 1.88 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
58
59
60
61
62
[tox]
# Note that django doesn't support pypy3 for now
# https://code.djangoproject.com/ticket/25849
envlist = py{34,35,36,37,38,39,py,py3}-dj{32,40,main}
[testenv]
changedir = {toxinidir}/test_project
usedevelop = true
setenv =
DEBUG=1
DJANGO_SETTINGS_MODULE=settings.base
commands =
py.test -v --cov --liveserver 127.0.0.1:9999 {posargs} secure_data rename_forward select2_foreign_key select2_generic_foreign_key select2_list select2_many_to_many select2_one_to_one select2_outside_admin select2_taggit custom_select2 select2_nestedadmin select2_djhacker_formfield
deps =
dj18: Django==1.8.*
dj19: Django==1.9.*
dj110: Django==1.10.*
dj111: Django==1.11.*
dj20: Django==2.0.*
dj21: Django==2.1.*
dj22: Django==2.2.*
dj30: Django==3.0.*
dj31: Django==3.1.*
dj31: Django==3.2.*
dj40: Django==4.0.0-rc1
djmain: https://github.com/django/django/archive/main.tar.gz
-rtest_project/requirements.txt
passenv = DISPLAY XAUTHORITY XDG_* PIP_* BROWSER MOZ_HEADLESS
[testenv:checkqa]
changedir = {toxinidir}
; basepython = python3.6
commands =
flake8 --show-source --max-complexity=7 --ignore=W503,D203,E722 --exclude src/dal/autocomplete.py,tests src
flake8 --show-source --max-complexity=7 --ignore=D203,F401 src/dal/autocomplete.py
flake8 --show-source --max-complexity=7 --ignore=D100,D101,D102,D103,D104,D105,D106 --filename=test_*.py src
flake8 --show-source --exclude migrations,settings --max-complexity=4 --ignore=D100,D101,D102,D103,D104,D105,D106,E305,W605 test_project
deps =
flake8
flake8-debugger
flake8-docstrings
flake8-import-order
mccabe
pep8-naming
pydocstyle<4
[testenv:docs]
changedir = {toxinidir}/docs
deps =
sphinx
commands =
pip install -r requirements.txt
pip install {toxinidir}
make html SPHINXOPTS="-W --keep-going -n"
whitelist_externals = make
[flake8]
max-line-length = 88