-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (50 loc) · 1.01 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]
requires =
tox>=4.2
virtualenv>20.2
env_list =
py311
py310
py39
py38
skip_missing_interpreters = true
[testenv]
description = Run the tests with {basepython}
deps =
.[dev]
git+https://github.com/pytorch/captum.git
commands =
pytest -s -v {posargs}
[testenv:coverage]
description = Run the tests with coverage
usedevelop = true
deps =
{[testenv]deps}
coverage
pytest_cov
commands =
python3 -m pytest --cov-report term --cov-report html:htmlcov --cov-report xml --cov=quanda {posargs}
[coverage:report]
exclude_also =
if\s+isinstance\(\s*train_dataset\s*,\s*str\s*\)\s*:
[testenv:lint]
description = Check the code style
deps =
ruff>=0.7.0
commands =
ruff check .
ruff check --select D --select E501 quanda
[testenv:type]
description = Run type checking
base_python = py311
deps =
{[testenv]deps}
mypy==1.9.0
types-requests
commands =
python3 -m mypy quanda --check-untyped-defs
[gh]
python =
3.9 = py39
3.10 = py310
3.11 = py311