-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathtox.ini
More file actions
54 lines (48 loc) · 1.25 KB
/
tox.ini
File metadata and controls
54 lines (48 loc) · 1.25 KB
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
[tox:tox]
envlist = y39,py310,py311,py312,py313,py314,docs,style,deptry
[testenv]
deps = --editable .[test]
## TODO: too much duplication here, and it's getting worse for every docker-based server we decide to add to the test framework. Can this be redone somehow?
passenv =
BAIKAL_URL
BAIKAL_USERNAME
BAIKAL_PASSWORD
NEXTCLOUD_URL
NEXTCLOUD_USERNAME
NEXTCLOUD_PASSWORD
CYRUS_URL
CYRUS_USERNAME
CYRUS_PASSWORD
SOGO_URL
SOGO_USERNAME
SOGO_PASSWORD
BEDEWORK_URL
BEDEWORK_USERNAME
BEDEWORK_PASSWORD
commands = coverage run -m pytest
[testenv:docs]
## TODO - I don't like duplication, this is now both here and in docs/requirements.txt
deps =
sphinx<9
manuel
sphinx-copybutton
pydata-sphinx-theme
sphinx-autodoc-typehints
environment =
PYTHON_CALDAV_USE_TEST_SERVER
commands =
sphinx-build -b doctest docs/source docs/build/doctest
[testenv:style]
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:deptry]
basepython = python3.13
deps = --editable .[test]
commands = deptry caldav --known-first-party caldav
[build_sphinx]
source-dir = docs/source
build-dir = docs/build
all_files = 1
[upload_sphinx]
upload-dir = docs/build/html