-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.ini
57 lines (48 loc) · 1.03 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
[tox]
envlist = py{310,311, 312, 313}-{linux,macos,windows}
toxworkdir=/tmp/.tox
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows
ubuntu-22.04: linux
[testenv]
platform =
linux: linux
macos: darwin
windows: win32
passenv =
CI
GITHUB_ACTIONS
DISPLAY
XAUTHORITY
extras = test
commands = pytest --color=yes -v --cov --cov-report=xml {posargs}
[pytest]
filterwarnings =
ignore:.*has no hooks:UserWarning
[testenv:napari]
basepython = python3.10
deps =
napari[pyqt, testing] @ git+https://github.com/napari/napari.git
commands =
pytest -v --color=yes --pyargs napari {posargs}
[testenv:linting]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:docs]
deps =
sphinx
pygments
sphinx_autodoc_typehints
sphinx_rtd_theme
commands =
sphinx-build -b html {toxinidir}/docs {toxinidir}/docs/_build/html