-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
54 lines (48 loc) · 1.16 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
[tox]
envlist = flake8, isort, pep257, docs, manifest
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/hamster_dbus
whitelist_externals = make
passenv =
SPHINXOPTS_BUILD
SPHINXOPTS_LINKCHECK
commands =
pip install -r requirements/dev.pip
make coverage
[testenv:flake8]
basepython = python3.4
deps =
flake8==3.3.0
flake8-debugger==1.4.0
flake8-print==2.0.2
pep8-naming==0.4.1
skip_install = True
commands = flake8 setup.py hamster_dbus/ tests/
[testenv:pep257]
basepython = python3
skip_install = True
deps =
pep257==0.7.0
commands =
pep257 setup.py hamster_dbus/ tests/
[testenv:isort]
basepython = python3
deps = isort==4.2.12
skip_install = True
commands =
isort --check-only --recursive --verbose setup.py hamster_dbus/ tests/
[testenv:manifest]
basepython = python3
deps = check-manifest==0.35
skip_install = True
commands =
check-manifest -v
[testenv:docs]
basepython = python3
deps = doc8==0.8.0
commands =
pip install -r requirements/docs.pip
make docs BUILDDIR={envtmpdir} SPHINXOPTS={env:SPHINXOPTS_BUILD:''}
make --directory=docs linkcheck BUILDDIR={envtmpdir} SPHINXOPTS={env:SPHINXOPTS_LINKCHECK:}
doc8