forked from City-of-Turku/parkkihubi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
37 lines (32 loc) · 758 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
[tox]
envlist = py310,requirements,style
skipsdist = True
[testenv]
deps =
-rrequirements.txt
-rrequirements-test.txt
passenv = CI
setenv =
DEBUG=0
SECRET_KEY=topsecret123
commands =
pytest -ra -vvv --strict --doctest-modules \
--exitfirst \ # DEBUGGING ONLY
{posargs:--cov=. --cov-report=term --cov-report=xml}
[testenv:requirements]
basepython = python3.10
deps =
-rrequirements-pip.txt
commands = pip {posargs:check}
[testenv:style]
basepython = python3.10
deps = -rrequirements-style.txt
commands = flake8 {posargs:--enable=T}
[testenv:sanitizer]
basepython = python3.10
deps = -rrequirements.txt
commands = {base_python} manage.py check_sanitizerconfig
[gh-actions]
python =
3.10: py310
problem_matcher = False