-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (42 loc) · 958 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
40
41
42
43
44
45
46
47
[tox]
envlist =
clean
ruff
py{39,310,311,312}
report
skipsdist = true
skip_missing_interpreters = true
labels =
prod = py{39,310,311,312}
dev = py{39,310,311,312}-dev
[testenv]
description = Test the production version of the app.
deps =
-rrequirements/base.txt
-rrequirements/test.txt
commands = pytest -n auto -m "not e2e" --cov=. --cov-branch tests
depends =
py{39,310,311,312}: clean
report: py{39,310,311,312}
[testenv:py{39,310,311,312}-dev]
description = Test the app with DEBUG=True and development dependencies.
deps = -rrequirements/dev.txt
setenv =
DJANGO_DEVELOPMENT=1
[testenv:clean]
deps = coverage[toml]==7.6.0
skip_install = true
commands = -coverage erase
[testenv:report]
deps = coverage[toml]==7.6.0
skip_install = true
commands =
-coverage combine
-coverage report
-coverage html
[testenv:ruff]
skip_install = true
deps = ruff
commands =
ruff check
ruff format --check