forked from pmbarrett314/curses-menu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
66 lines (58 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
[tox]
envlist = clean,py{37,38,39,310}-{linux,macos,windows},py,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]
whitelist_externals = poetry
deps =
deprecated
coverage[toml]
pytest
pytest-cov
pexpect
pyte
windows-curses;sys_platform=='win32'
commands =
poetry install -v
poetry run pytest -vv --cov --cov-append --cov-report=term-missing --cov-report=xml --cov-fail-under=100 --no-cov-on-fail
coverage lcov
platform = linux: linux
macos: darwin
windows: win32
setenv =
PYTHONWARNINGS=all
TERM=xterm-256color
COVERAGE_RCFILE = {envtmpdir}/coveragerc
commands_pre =
{envpython} ./scripts/make_coverage_rc.py
[testenv:type]
deps =
mypy
types-Deprecated
commands =
mypy --strict cursesmenu
basepython = python3.10
[testenv:lint]
deps =
flake8
commands =
flake8 cursesmenu
flake8 test
basepython = python3.10
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.10
deps = sphinx >= 5.1.1, < 6
sphinx-autodoc-typehints >= 1.19.0, < 2
sphinx-rtd-theme >= 1.0.0, < 2
deprecated
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]
skip_install = true
commands = coverage erase