forked from pinecone-io/pinecone-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
39 lines (34 loc) · 1 KB
/
tox.ini
File metadata and controls
39 lines (34 loc) · 1 KB
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
[tox]
envlist = py{38,39,310,311},flake8,docs
skip_missing_interpreters = true
[testenv]
setenv = HOSTNAME=hostname
deps=
-r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
-r {toxinidir}/requirements-grpc.txt
commands =
pytest --cov=pinecone --timeout=120 tests/unit {posargs}
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[flake8]
max-line-length = 120
extend-ignore = E203
[testenv:flake8]
deps = flake8==3.8.4
commands = flake8 pinecone
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3
deps = sphinx==3.1.0
sphinx_rtd_theme
sphinxcontrib-httpexample
sphinxcontrib-httpdomain
recommonmark
sphinx-markdown-tables
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"))'