-
Notifications
You must be signed in to change notification settings - Fork 22
/
tox.ini
64 lines (56 loc) · 1.34 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
[tox]
minversion = 3.1
envlist = pep8,clean,py{39,310,311,312,313},report,docs,man
ignore_basepython_conflict = true
[testenv]
basepython = python3
deps =
-r{toxinidir}/test-requirements.txt
commands =
pytest -Wall --cov=pwclient --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
commands=
mypy {posargs:--ignore-missing-imports --follow-imports=skip} pwclient
[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]
allowlist_externals =
bash
mkdir
deps =
argparse-manpage
commands =
# argparse-manpage doesn't have an OUTPUT flag and tox doesn't support
# redirection, so we need to wrap this in 'bash'
mkdir -p man
bash -c 'argparse-manpage --project-name=pwclient \
--url https://github.com/getpatchwork/patchwork \
--author="Patchwork Developers" --author-email="[email protected]" \
--module pwclient.parser --function get_parser > man/pwclient.1'
[flake8]
show-source = true