-
Notifications
You must be signed in to change notification settings - Fork 42
/
tox.ini
91 lines (83 loc) · 2.2 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[tox]
envlist = pylint,docs,lint,mypy,demo,dist-test
py{310,311,312}-dj{5.0,5.1}-cg{43}-acme{2.11}-pydantic{2.9}
py{39,310,311,312}-dj{4.2}-cg{43}-acme{2.11}-pydantic{2.9}
faketime
[testenv]
skipsdist = True
deps =
-r requirements.txt
-r requirements/requirements-test.txt
dj4.2: Django~=4.2.0
dj5.0: Django~=5.0.0
dj5.1: Django~=5.1.0
cg43: cryptography~=43.0
acme2.11: acme~=2.11.0
pydantic2.9: pydantic~=2.9.0
setenv =
COVERAGE_FILE = {envdir}/.coverage
commands =
pytest -v --basetemp="{env_tmp_dir}" --cov-report html:{envdir}/htmlcov/ --durations=20 {posargs}
[testenv:faketime]
skipsdist = True
deps =
-r requirements.txt
-r requirements/requirements-test.txt
setenv =
COVERAGE_FILE = {envdir}/.coverage
allowlist_externals = faketime
commands =
faketime -f "+100y" pytest -v --no-selenium --basetemp="{env_tmp_dir}" --cov-report html:{envdir}/htmlcov/ --durations=20 {posargs}
[testenv:demo]
basepython = python3
skipsdist = True
deps =
-r requirements.txt
-r requirements/requirements-test.txt
allowlist_externals = rm
commands =
rm -rf {envdir}/db.sqlite3 {envdir}/files/
python dev.py init-demo
[testenv:lint]
basepython = python3
skipsdist = True
deps =
-r requirements.txt
-r requirements/requirements-lint.txt
commands =
python dev.py code-quality
python dev.py validate state
python dev.py validate license-headers
[testenv:pylint]
basepython = python3
skipsdist = True
deps =
-r requirements.txt
-r requirements/requirements-lint.txt
commands =
pylint ca/ca/ ca/django_ca/ docs/source/django_ca_sphinx/ devscripts/ dev.py
[testenv:docs]
basepython = python3.12
skipsdist = True
allowlist_externals = make
deps =
-r requirements.txt
-r requirements/requirements-docs.txt
commands =
doc8 docs/source/
make -C docs clean spelling html
[testenv:mypy]
basepython = python3
skipsdist = True
deps =
-r requirements.txt
-r requirements/requirements-mypy.txt
commands = mypy .
[testenv:dist-test]
basepython = python3
skipsdist = True
deps =
-r requirements/requirements-dist.txt
commands =
python -m build -o {env_dir}/dist/
twine check --strict {env_dir}/dist/*