forked from MREYE-LUMC/ZOSPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (46 loc) · 1.51 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
[tox]
min_version = 4.0
labels =
test-extension = py3{9,10,11}-extension
test-standalone = py3{9,10,11}-standalone
extension = format,lint,py3{9,10,11}-extension
# Default environments that are run without further specification
env_list =
format
lint
py39-standalone-legacy-zpcoreonly
py39-standalone
py310-standalone-legacy-zpcoreonly
py310-standalone
py311-standalone-legacy-zpcoreonly
py311-standalone
[testenv]
deps = [test]
[testenv:py3{8,9,10,11}-extension]
description = run unit tests on specific Python versions in extension mode
commands = pytest tests --extension {posargs}
[testenv:py3{8,9,10,11}-standalone-legacy-zpcoreonly]
description = run unit tests on specific Python versions in standalone mode with a legacy connection
passenv = *
commands = pytest tests/test_zpcore.py --legacy-connection-setup {posargs}
[testenv:py3{8,9,10,11}-standalone]
description = run unit tests on specific Python versions in standalone mode
passenv = *
commands = pytest tests {posargs}
[testenv:format]
description = install black and isort in a virtual environment and invoke it on the current folder
skip_install = true
allowlist_externals = isort
deps = [dev]
commands =
isort .
black .
[testenv:lint]
description = install ruff in a virtual environment and invoke it on the current folder
skip_install = true
deps = [dev]
commands = ruff {posargs} zospy
[testenv:docs]
description: build documentation locally
deps = [docs]
commands = sphinx-build -M {posargs:html} ./docs ./docs/_build