forked from explorerhq/sql-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
38 lines (34 loc) · 864 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
[tox]
envlist =
flake8
isort
py{38,39,310}-dj{32,40,41,42}
py{310,311}-dj{41,42,main}
skip_missing_interpreters=True
[testenv]
deps =
-r{toxinidir}/requirements/base.txt
-r{toxinidir}/requirements/optional.txt
dj32: Django>=3.2,<3.3
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
dj42: Django>=4.2b1,<4.3
djmain: https://github.com/django/django/archive/main.tar.gz
commands =
{envpython} --version
{env:COMMAND:coverage} erase
{env:COMMAND:coverage} run manage.py test
{env:COMMAND:coverage} combine
{env:COMMAND:coverage} html --skip-covered --skip-empty
{env:COMMAND:coverage} report
ignore_outcome =
djmain: True
ignore_errors =
djmain: True
[testenv:flake8]
deps = flake8
commands = flake8
[testenv:isort]
deps = isort
commands = isort --check --diff explorer
skip_install = true