summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 67c9478d3c52d3aa9b417e36b915ba3115391753 (plain)
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]
minversion=2.3.1
envlist = py26,py27,py32,py33,py34,py35,flake8

[testenv]
deps =
    mock
    pytest
commands =
    py.test {posargs}

[testenv:venv]
deps =
    .
commands = {posargs}

[testenv:flake8]
skipsdist = true
skip_install = true
use_develop = false
deps =
    flake8
    flake8-docstrings
commands =
    flake8

[testenv:docs]
deps =
    sphinx>=1.3.0
commands =
    sphinx-build -E -W -c docs/source/ -b html docs/source/ docs/build/html

[testenv:serve-docs]
basepython = python3.4
skipsdist = true
skip_install = true
use_develop = false
changedir = docs/_build/html
deps =
commands =
    python -m http.server {posargs}

[testenv:readme]
deps =
    readme_renderer
commands =
    python setup.py check -r -s

[flake8]
# Ignore some flake8-docstrings errors
ignore = D203
# NOTE(sigmavirus24): Once we release 3.0.0 this exclude option can be specified
# across multiple lines. Presently it cannot be specified across multiple lines.
# :-(
exclude = .git,__pycache__,docs/source/conf.py