-
Notifications
You must be signed in to change notification settings - Fork 39
/
tox.ini
34 lines (30 loc) · 658 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
28
29
30
31
32
33
34
[tox]
envlist = py3{10}, report
[testenv]
commands = pytest
skip_install = true
depends =
report: py3{10}
setenv =
py3{10}: COVERAGE_FILE = .coverage.{envname}
install_command =
python -m pip install -U {opts} {packages} --find-links https://data.pyg.org/whl/torch-2.1.2+cpu.html
deps =
py310: -r requirements/dev-3.10.txt
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report --fail-under=0
[testenv:style]
deps =
types-setuptools
pre-commit
ruff
isort
mypy
bandit[toml]
black
skip_install = true
commands = pre-commit run --all-files --show-diff-on-failure