-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
46 lines (41 loc) · 892 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
[tox]
envlist = d{51}
envtmpdir={toxinidir}/build/{envname}/tmp
envlogdir={toxinidir}/build/{envname}/log
[testenv]
basepython=python3.13
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 =
d51: django==5.1.*
allowlist_externals =
ruff
mkdir
pytest
commands =
mkdir -p {toxinidir}/~build/flake {toxinidir}/build/results
ruff check
ruff format
pytest tests \
-q \
--create-db \
--cov-report=html \
--cov-report=term \
--cov-config={toxinidir}/tests/.coveragerc \
--cov=hope_payment_gateway
[testenv:report]
commands =
pip install coverage
coverage html