-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
65 lines (59 loc) · 1.38 KB
/
tox.ini
File metadata and controls
65 lines (59 loc) · 1.38 KB
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
65
; a generative tox configuration, see: https://tox.readthedocs.io/en/latest/config.html#generative-envlist
[tox]
envlist =
clean,
check,
{py27},
report,
[testenv]
basepython =
{py27,spell}: {env:TOXPYTHON:python2.7}
{clean,check,report}: {env:TOXPYTHON:python2.7}
setenv =
PYTHONPATH={toxinidir}/tests:/usr/lib64/python2.7/site-packages
PYTHONUNBUFFERED=yes
passenv =
*
usedevelop = false
deps =
-r{toxinidir}/requirements.txt
PySide
coverage
commands =
coverage run --parallel-mode -m unittest discover
[testenv:check]
deps =
-r{toxinidir}/requirements.txt
PySide
docutils
check-manifest
pylint
readme-renderer
pydocstyle
skip_install = true
commands =
python setup.py check --strict --metadata --restructuredtext
check-manifest {toxinidir}
; Qt.py causes "no-name-in-module" errors to be raised. Just ignore them.
pylint --disable=no-name-in-module,ungrouped-imports src/qwebtip tests setup.py
pydocstyle src/qwebtip tests setup.py
[testenv:spell]
setenv =
SPELLCHECK=1
commands =
sphinx-build -b spelling dist/docs
skip_install = true
deps =
sphinxcontrib-spelling
pyenchant
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage combine --append
coverage report
coverage html
[testenv:clean]
commands = coverage erase
skip_install = true
deps = coverage