-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
59 lines (53 loc) · 1.26 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
58
59
[tox]
envlist = tests
wheel = true
[testenv]
deps =
-r requirements-dev.txt
-r requirements.txt
extras =
ray
influence
memcached
setenv =
COVERAGE_FILE = {env:COVERAGE_FILE:{toxinidir}/.coverage.{envname}}
passenv =
CI
[testenv:tests]
commands =
pytest --ignore=tests/value -n auto --dist worksteal --cov "{envsitepackagesdir}/pydvl" {posargs}
[testenv:legacy-tests]
commands =
pytest -n auto --dist worksteal tests/value --cov "{envsitepackagesdir}/pydvl/value" {posargs}
[testenv:notebook-tests]
deps =
{[testenv]deps}
-r requirements-notebooks.txt
commands =
pytest --nbmake --nbmake-timeout=300 -n 0 --cov "{envsitepackagesdir}/pydvl" notebooks/ {posargs}
[testenv:linting]
skip_install = true
setenv =
PYLINTHOME = .pylint.d
commands =
pre-commit run --all --show-diff-on-failure
bash -c \'python build_scripts/run_pylint.py >>>(pylint-json2html -f jsonextended -o pylint.html) \'
deps =
-r requirements-linting.txt
-r requirements.txt
extras:
torch
whitelist_externals =
bash
[testenv:type-checking]
basepython = python3.8
skip_install = true
setenv =
MYPY_FORCE_COLOR=1
passenv =
TERM
deps =
-r requirements-type-checking.txt
-r requirements.txt
commands =
mypy {posargs:src/}