-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (43 loc) · 859 Bytes
/
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
[tox]
minversion = 2.4
envlist = oldcp,newcp
[travis]
python =
2.7: py27
3.6: py3
[testenv]
deps =
setuptools>=31.0.1
oldcp: CherryPy==3.8
newcp: CherryPy>=10dev,<11dev
commands =
pytest --cov machinerry {posargs}
python setup.py checkdocs
pylint --disable=W machinerry.py
usedevelop = True
extras = testing
[pytest]
norecursedirs=dist build .tox .eggs
addopts=--doctest-modules --doctest-glob=*.rst
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
filterwarnings =
error
# once::DeprecationWarning
# once::PendingDeprecationWarning
[testenv:docs]
basepython = python3
extras =
docs
commands =
sphinx-build -W docs/ {toxinidir}/build/docs/
[testenv:lint]
basepython = python3
# Needed for custom pycodestyle package.
deps =
-rrequirements-dev.txt
extras =
lint
commands =
flake8
pycodestyle
pylint machinerry.py