-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
57 lines (50 loc) · 1.19 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
[tox]
envlist = py37, flake8, pep257, isort, docs
[tox:travis]
3.4 = py34, flake8, pep257, isort, docs
3.5 = py35, flake8, pep257, isort, docs
3.6 = py36, flake8, pep257, isort, docs
3.7 = py37, flake8, pep257, isort, docs
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/hamster_lib
whitelist_externals = make
commands =
pip install -r requirements/test.pip
make coverage
[testenv:flake8]
basepython = python3
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_lib/ tests/
[testenv:isort]
basepython = python3
deps = isort
skip_install = True
commands =
isort --check-only --recursive --verbose setup.py hamster_lib/ tests/
[testenv:pep257]
basepython = python3
skip_install = True
deps =
pep257==0.7.0
commands =
pep257 setup.py hamster_cli/ tests/
[testenv:manifest]
basepython = python3
deps = check-manifest==0.35
skip_install = True
commands =
check-manifest -v
[testenv:docs]
basepython = python3
deps = doc8
commands =
python -V
pip install -r requirements/docs.pip
make docs BUILDDIR={envtmpdir} SPHINXOPTS='-W'
make -C docs linkcheck BUILDDIR={envtmpdir}