forked from psf/pyperf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
42 lines (36 loc) · 865 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
[tox]
envlist = py27, py3, pypy, doc, pep8
[testenv]
deps=
contextlib2; python_version < '3.0'
mock; python_version < '3.0'
nose
psutil
unittest2; python_version < '3.0'
commands=
python -bb -Wd -m nose -v {posargs:perf.tests}
[testenv:py3]
basepython = python3
[testenv:pypy]
# Don't install psutil on PyPy (compilation of the C extension fails)
deps=
contextlib2; python_version < '3.0'
mock; python_version < '3.0'
nose
unittest2; python_version < '3.0'
[testenv:doc]
basepython = python3
deps=
sphinx
whitelist_externals = make
commands=
make -C doc html
[testenv:pep8]
deps = flake8
commands =
flake8 perf setup.py doc/examples/
[flake8]
# E501 line too long (88 > 79 characters)
# F812 list comprehension redefines 'loops' from line 56
# W503 line break before binary operator
ignore = E501,F812,W503