File: tox.ini

package info (click to toggle)
python-cloup 2.0.0.post1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 944 kB
  • sloc: python: 5,193; makefile: 116
file content (64 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download
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
[tox]
envlist =
  lint
  mypy
  twine
  py{37,38,39,310,311}-click8
  report
  docs

[tool:pytest]
addopts =
  --basetemp={envtmpdir}

[testenv]
setenv =
  PYTHONPATH = {toxinidir}
deps =
  -r requirements/test.in
  click8: click >=8, <9
commands =
  pytest {posargs:-vv}
depends =
  report: py39-click8

[testenv:py38-click8]
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 --strict cloup
  mypy 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