-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
49 lines (44 loc) · 1009 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
49
[tox]
envlist = d{50}
envtmpdir={toxinidir}/build/{envname}/tmp
envlogdir={toxinidir}/build/{envname}/log
[testenv]
basepython=python3.11
passenv =
PYTHONDONTWRITEBYTECODE
USER
PYTHONPATH
DATABASE_URL
DATABASE_HOPE_URL
SECRET_KEY
AZURE_CLIENT_ID
AZURE_CLIENT_SECRET
setenv =
PYTHONDONTWRITEBYTECODE=true
PYTHONPATH={toxinidir}/src
extras =
test
deps =
d50: django==5.0.*
allowlist_externals =
flake8
isort
black
mkdir
pytest
commands =
mkdir -p {toxinidir}/~build/flake {toxinidir}/build/results
flake8 src/ tests/ --format=html --htmldir=~build/flake
isort src/ tests/ --check-only
black --check src/ tests/
pytest tests \
-q \
--create-db \
--cov-report=html \
--cov-report=term \
--cov-config={toxinidir}/tests/.coveragerc \
--cov=hope_dedup_engine
[testenv:report]
commands =
pip install coverage
coverage html