-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
64 lines (58 loc) · 1.29 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
63
64
[tox]
isolated_build = True
skipsdist = True
envlist =
black
isort
pylint
py{310,311}-django{42,50}-wagtail{50,60}
[testenv]
deps =
django42: Django==4.2
django50: Django==5.0
channels
daphne
django-extensions
django-model-utils
pytest
pytest-clarity
pytest-django
pytest-asyncio
pytest-cov
factory-boy
commands =
pytest --cov --cov-report=xml
setenv =
PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}
[testenv:black]
# Empty list to not install all deps from base testenv
deps =
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands = black --exclude '.*(migrations|.tox|.venv)' --check --diff .
[testenv:isort]
# Empty list to not install all deps from base testenv
deps =
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands = isort --check-only --diff .
[testenv:pylint]
# Empty list to not install all deps from base testenv
deps =
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands = pylint --django-settings-module=tests.settings django_admin_shellx tests
[pytest]
addopts = --ds=tests.settings --reuse-db -ra
testpaths = tests
norecursedirs = .git */migrations/* .venv
omit =
./.venv/*
*/migrations/*
*/apps.py