generated from gpauloski/python-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
27 lines (23 loc) · 790 Bytes
/
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
[tox]
envlist = {py39, py310, py311, py312, py313}, {py39, py310, py311, py312, py313}-gpu, pre-commit
[testenv]
install_command =
python -I -m pip install {opts} {packages} --extra-index-url https://download.pytorch.org/whl/cpu
extras = dev, preprocess
commands =
coverage erase
coverage run -m pytest {posargs}
coverage combine --quiet
coverage report
[testenv:{py39,py310,py311,py312,py313}-gpu]
install_command =
python -I -m pip install {opts} {packages}
[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:docs]
install_command =
python -I -m pip install {opts} {packages} --extra-index-url https://download.pytorch.org/whl/cpu
extras = docs
commands = mkdocs build --strict