/
tox.ini
58 lines (48 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]
skip_missing_interpreters = True
envlist = py27,py33,py34,pypy,flake8,docs
[testenv]
deps =
-rdev-requirements.txt
changedir = tests
commands =
py.test --basetemp={envtmpdir} {posargs}
[testenv:flake8]
changedir =
commands = flake8
[testenv:docs]
changedir = docs
deps = -rdev-requirements.txt
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[benchmark]
changedir = {toxinidir}
deps =
-rdev-requirements.txt
-rbenchmark/benchmark-requirements.txt
commands = {toxinidir}/benchmark/benchmark.fish {envdir}
[testenv:benchmark-py27]
basepython = python2.7
changedir = {[benchmark]changedir}
deps = {[benchmark]deps}
commands = {[benchmark]commands}
[testenv:benchmark-py34]
basepython = python3.4
changedir = {[benchmark]changedir}
deps = {[benchmark]deps}
commands = {[benchmark]commands}
[testenv:benchmark-pypy]
basepython = pypy
changedir = {[benchmark]changedir}
deps = {[benchmark]deps}
commands = {[benchmark]commands}
[pytest]
pep8maxlinelength = 120
norecursedirs = .git dist build .tox
minversion = 2.0
timeout = 2000
timeout_method = thread
[flake8]
max-line-length = 120
exclude = docs,dist,build,.tox,*.egg
max-complexity = 10