File: tox.ini

package info (click to toggle)
git-pw 2.7.1-0.1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 540 kB
  • sloc: python: 2,766; makefile: 4
file content (60 lines) | stat: -rw-r--r-- 1,071 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
[tox]
minversion = 3.1
envlist = pep8,mypy,clean,py{39,310,311,312,313},report

[testenv]
deps =
  -r{toxinidir}/test-requirements.txt
commands =
  pytest -Wall --cov=git_pw --cov-report term-missing {posargs}

[testenv:pep8]
skip_install = true
deps =
  pre-commit
commands =
  pre-commit run --all-files --show-diff-on-failure

[testenv:mypy]
deps=
  mypy
  types-PyYAML
  types-requests
  types-setuptools
  types-tabulate
commands=
  mypy {posargs:--ignore-missing-imports --follow-imports=skip} git_pw

[testenv:report]
skip_install = true
deps =
  coverage
commands =
  coverage report
  coverage html

[testenv:clean]
envdir = {toxworkdir}/report
skip_install = true
deps =
  {[testenv:report]deps}
commands =
  coverage erase

[testenv:docs]
deps =
  -r{toxinidir}/docs/requirements.txt
commands =
  sphinx-build {posargs:-E -W} docs docs/_build/html

[testenv:man]
# Does not currently support Python 3.12
# https://github.com/click-contrib/click-man/pull/64
basepython = 3.11
deps =
  click-man~=0.4.0
commands =
  click-man git-pw

[flake8]
show-source = true