-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
48 lines (40 loc) · 957 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
48
[tox]
minversion = 3.18
envlist =
py{38,39,310}-django32
py{38,39,310,311}-django{41,42}
flake8
isort
black
[cleanup]
commands =
find {toxinidir}/ -type f -name "*.pyc" -delete
find {toxinidir}/ -type d -name "__pycache__" -delete
find {toxinidir}/ -type f -path "*.egg-info*" -delete
[testenv]
deps =
-rtest_requirements.txt
django32: Django~=3.2.0
django41: Django~=4.1.0
django42: Django~=4.2.0
setenv =
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = module::DeprecationWarning
commands =
coverage run runtests.py
# coverage report -m
{[cleanup]commands}
allowlist_externals =
find
[testenv:flake8]
changedir = {toxinidir}
deps = flake8
commands = flake8 questionnaire_core tests
[testenv:isort]
changedir = {toxinidir}
deps = isort
commands = isort --check-only --diff questionnaire_core tests
[testenv:black]
changedir = {toxinidir}
deps = black
commands = black --check {toxinidir}