-
Notifications
You must be signed in to change notification settings - Fork 18
/
tox.ini
55 lines (50 loc) · 1.23 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
[tox]
# We skip isort because it conflicts with setting GTK version in inports
# https://github.com/timothycrosley/isort/issues/295
envlist = py27, py35, docs, flake8, manifest, pep257
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/hamster_gtk
sitepackages=True
whitelist_externals =
make
passenv =
SPHINXOPTS_BUILD
SPHINXOPTS_LINKCHECK
XVFB_WHD
DISPLAY
commands =
pip install -r requirements/test.pip
make coverage
[testenv:docs]
basepython = python2
# We need access to GTK for autodocs
sitepackages = True
deps = doc8==0.7.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
[testenv:flake8]
basepython = python3
deps =
flake8==3.2.1
flake8-debugger==1.4.0
flake8-print==2.0.2
pep8-naming==0.4.1
skip_install = True
commands = flake8 setup.py hamster_gtk/ tests/
[testenv:manifest]
basepython = python3
deps = check-manifest==0.35
skip_install = True
commands =
check-manifest -v
[testenv:pep257]
basepython = python3
skip_install = True
deps =
pep257==0.7.0
commands =
pep257 setup.py hamster_gtk/ tests/