-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
39 lines (34 loc) · 819 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
39
[tox]
isolated_build = true
envlist = py311,py312
[gh]
python =
3.11 = py311,black,bandit,coverage
3.12 = py312
[testenv]
skip_install = true
setenv =
DJANGO_SETTINGS_MODULE=tests.settings
PYTHONPATH=$TOX_WORK_DIR/..
#PYTHONWARNINGS=always
allowlist_externals =
poetry
commands_pre =
poetry install --sync --only=main,test --all-extras
commands =
django-admin check
django-admin test --parallel {posargs}
[testenv:coverage]
commands =
coverage erase
coverage run -m django test
coverage report
[testenv:black]
commands_pre=
poetry install --sync --only=dev --all-extras
commands = black --check --fast .
[testenv:bandit]
commands_pre=
poetry install --sync --only=dev --all-extras
commands =
bandit -c pyproject.toml -r --severity-level high jasmin_services