-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
58 lines (49 loc) · 1.07 KB
/
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
50
51
52
53
54
55
56
57
58
[tox]
envlist = py311
;skip_missing_interpreters = true
isolated_build = True
[testenv]
whitelist_externals = pdm
;skip_install = true
passenv =
DATABASE_URL
STATIC_URL
STATIC_ROOT
CACHE_DEFAULT
setenv =
PYTHONPATH =
AUTHENTICATION_BACKENDS =
CRYPTOGRAPHY_DONT_BUILD_RUST = 1
SECRET_KEY = versy-super-secret-test-key
DJANGO_SETTINGS_MODULE=aurora.config.settings
deps =
pdm
commands_pre =
pdm sync --prod --no-editable --no-self -v
commands =
mkdir -p {toxinidir}/~build/flake {toxinidir}/build/results
flake8 src/ tests/ --format=html --htmldir=~build/flake
isort src/ tests/ --check-only
black --check .
pytest tests \
-q \
--create-db \
--cov-report=html \
--cov-report=term \
--cov-config={toxinidir}/tests/.coveragerc \
--cov=aurora
allowlist_externals =
flake8
isort
black
mkdir
pytest
[testenv:lint]
commands =
flake8 src/ tests/
isort -c src/ tests/
black --check .
[testenv:report]
commands =
pip install coverage
coverage html