forked from sb-ai-lab/LightAutoML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
86 lines (76 loc) · 1.71 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[tox]
min_version = 3.28.0
isolated_build = True
envlist =
py{36, 37, 38, 39, 310},
lint,
docs,
typing,
jupyter,
experiment_tracking,
build
[tox:.package]
# note tox will use the same python version as under what tox is installed to package
# so unless this is python 3 you can require a given python version for the packaging
# environment via the basepython key
basepython = python3
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows
[testenv]
package = wheel
deps =
.[all]
pytest >= 6.2.5
commands = pytest {posargs} -v --basetemp="{envtmpdir}"
[testenv:lint]
deps =
pre-commit == 2.15.0
commands = pre-commit run --all-files
[testenv:docs]
requires = python >= 3.8
changedir = docs
deps =
poetry >= 1.1.7
sphinx == 5.3.0 # extras = ["autdoc", "autosummary", "intersphinx", "napoleon", "viewcode"]
sphinx-autodoc-typehints >=1.19.5
sphinx-rtd-theme >=1.1.1
nbsphinx == 0.8.10
nbsphinx-link == 1.3.0
doc8 == 0.10.1
rstcheck == 3.3.1
pandoc == 2.0.1
commands =
poetry run make clean html
poetry run python ../check_docs.py
[testenv:typing]
description = run type checks
deps =
mypy >= 0.991
commands =
mypy {posargs:src tests}
[testenv:experiment_tracking]
deps = clearml
commands = sh experiments/run_bench_release.sh {posargs}
[testenv:jupyter]
requires = python >= 3.8
deps =
ipython >=3.8
ipywidgets == 7.7.1
notebook == 6.4.10
jupyter-contrib-nbextensions == 0.5.1
[testenv:build]
deps =
poetry >= 1.1.7
commands =
poetry run python scripts/poetry_fix.py -f
poetry build