-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtox.ini
63 lines (54 loc) · 1.1 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
[tox]
envlist =
lint
mypy
twine
py{36,37,38,39}-click{7,8}
report
docs
[tool:pytest]
addopts =
--basetemp={envtmpdir}
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r requirements/test.txt
click7: click >=7.0, <8
click8: click >=8.0.0a1, <9
commands =
pytest {posargs:-vv}
depends =
report: py39-click8
[testenv:py38-click7]
commands =
pytest --cov=cloup {posargs:-vv}
[testenv:report]
skip_install = true
deps = coverage
commands =
coverage html
coverage report
[testenv:lint]
skip_install = true
deps = flake8
commands = flake8 cloup tests examples
[testenv:mypy]
deps = mypy
commands = mypy cloup tests examples
[testenv:twine]
deps = twine
commands = twine check {distdir}/*
[testenv:dev] # Create a development environment
envdir = {toxinidir}/venv
basepython = python3.8
usedevelop = true
deps = -r requirements/dev.txt
commands = python --version
[testenv:docs]
basepython = python3.8
deps = -r requirements/docs.txt
commands =
python scripts/remove.py docs/_build
sphinx-build {posargs:-E} -b html docs docs/_build/html
sphinx-build -b linkcheck docs docs/_build/html