/
tox.ini
59 lines (54 loc) · 1.18 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
[tox]
envlist =
flake8
style
readme
py{35,36,37}-dj111-sqlite
py{35,36,37,38}-dj22-sqlite
py{36,37,38}-dj30-sqlite
py{36,37,38}-djmaster-sqlite
py37-dj111-{postgresql,mariadb}
py{37,38}-dj{22,30}-{postgresql,mariadb}
[testenv]
deps =
dj111: Django==1.11.*
dj22: Django==2.2.*
dj30: Django==3.0.*
sqlite: mock
postgresql: psycopg2-binary
mariadb: mysqlclient
djmaster: https://github.com/django/django/archive/master.tar.gz
coverage
Jinja2
html5lib
selenium<4.0
sqlparse
setenv =
PYTHONPATH = {toxinidir}
postgresql: DJANGO_DATABASE_ENGINE = postgresql
mariadb: DJANGO_DATABASE_ENGINE = mysql
whitelist_externals = make
pip_pre = True
commands = make coverage TEST_ARGS='{posargs:tests}'
[testenv:flake8]
basepython = python3
commands = make flake8
deps = flake8
skip_install = true
[testenv:style]
basepython = python3
commands = make style_check
deps =
black
flake8
isort
skip_install = true
[testenv:jshint]
basepython = python3
commands = make jshint
skip_install = true
[testenv:readme]
basepython = python3
commands = python setup.py check -r -s
deps = readme_renderer
skip_install = true