forked from box/box-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
58 lines (51 loc) · 1.17 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
58
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist =
py26,
py27,
py33,
py34,
py35,
pypy,
pep8,
pylint,
rst,
docs,
coverage
[testenv]
commands =
py.test test/ {posargs}
deps = -rrequirements-dev.txt
[testenv:rst]
deps =
docutils
pygments
commands =
rst2html.py --strict README.rst
rst2html.py --strict HISTORY.rst
rst2html.py --strict CONTRIBUTING.rst
[testenv:pep8]
commands =
pep8 --ignore=E501,W292 boxsdk setup.py
pep8 --ignore=E501,W292 test
deps =
pep8
[testenv:pylint]
commands =
pylint --rcfile=.pylintrc boxsdk setup.py
# pylint:disable W0621(redefined-outer-name) - Using py.test fixtures always breaks this rule.
pylint --rcfile=.pylintrc test -d W0621 --ignore=mock_box
deps = -rrequirements-dev.txt
[testenv:coverage]
commands = py.test --cov boxsdk test/unit test/integration
deps = -rrequirements-dev.txt
[testenv:docs]
changedir = docs
deps =
sphinx
commands =
sphinx-apidoc -f -o source ../boxsdk
make html