-
Notifications
You must be signed in to change notification settings - Fork 26
/
tox.ini
33 lines (29 loc) · 968 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=test-{py39,py310},cover-py310-all,pyflakes,typecheck-py310-example
[testenv]
skip_install=true
deps=
-e .[test]
docs: -e .[clize-own-docs]
cover: coverage
typecheck: mypy
commands=
test: {posargs:python -m unittest}
cover: coverage erase
cover-all: -coverage run {posargs:-m unittest}
cover-util: -coverage run -m unittest2 clize.tests.test_util
cover-help: -coverage run -m unittest2 clize.tests.test_help
cover: coverage html
cover: coverage xml
cover-all: coverage report
cover-util: coverage report --include 'clize/util.py'
cover-help: coverage report --include 'clize/help.py'
docs: {envbindir}/sphinx-build {toxinidir}/docs/ {toxinidir}/build/sphinx {posargs:}
typecheck-example: python -m mypy --install-types --non-interactive --ignore-missing-imports examples/typed_cli.py
[testenv:docs]
basepython=python3.9
[testenv:pyflakes]
deps=
pyflakes
commands=
pyflakes clize