-
Notifications
You must be signed in to change notification settings - Fork 371
/
tox.ini
35 lines (31 loc) · 851 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
[tox]
envlist =
flake8
isort
{base-reqs,dev}-py{310,311,312}-dj{32,42,50}
{base-reqs,dev}-py{311,312}-dj{50,main}
skip_missing_interpreters=True
[testenv]
allowlist_externals = coverage
deps =
base-reqs: -r requirements/tests.txt
dj32: django>=3.2,<4.0
dj42: django>=4.2,<5.0
dj50: django>=5.0,<5.1
djmain: https://github.com/django/django/archive/main.tar.gz
dev: -r requirements/dev.txt
commands =
{envpython} --version
base-reqs: coverage run manage.py test --settings=explorer.tests.settings_base --noinput
dev: coverage run manage.py test --settings=explorer.tests.settings --noinput
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