-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
33 lines (29 loc) · 789 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
[tox]
envlist = py310
isolated_build = True
[pytest]
minversion = 6.0
addopts = -ra -q
testpaths =
tests
[testenv]
deps =
pytest
-e ./[embeddml]
commands_pre = python -m spacy download en_core_web_sm
commands = pytest {posargs}
[testenv:flake8]
deps =
flake8
commands =
flake8 --ignore=E501,E402,F401 src/semanticlayertools/ tests/
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.10
deps =
-e ./[embeddml]
sphinx
sphinx_rtd_theme
m2r2
commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'