-
Notifications
You must be signed in to change notification settings - Fork 53
/
tox.ini
59 lines (52 loc) · 1.56 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 = clean,py{39,310,311,312},pypy3,type,lint,docs
isolated_build = True
[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
[testenv]
deps =
coverage[toml]< 8
coverage-conditional-plugin<0.10.0
pytest<9.0.0
pyte<0.8.2
pytest-cov<6.0.0
pexpect<5.0.0
windows-curses == 2.3.2;sys_platform=='win32'
commands =
pytest
setenv =
PYTHONWARNINGS=all
TERM=xterm-256color
uv_python_preference=managed-only
[testenv:type]
deps =
mypy<1.12.0
pytest<9.0.0
commands =
mypy .
basepython = python3.12
[testenv:lint]
deps =
ruff == v0.6.4
commands =
ruff check cursesmenu
ruff check test
basepython = python3.12
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.12
setenv =
PYTHONWARNINGS=ignore::DeprecationWarning
deps = sphinx<=9.0.0; python_version >='3.10'
sphinx-rtd-theme==3.0.0rc1; python_version >= '3.10'
sphinx-autodoc-typehints<3.0.0; python_version>='3.10'
commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs/source "{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"))'
[testenv:clean]
deps = coverage[toml]<8
coverage-conditional-plugin<0.10.0
skip_install = true
commands = coverage erase