forked from Yelp/py_zipkin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
35 lines (30 loc) · 979 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
[tox]
envlist = pre-commit, py27, py34, py35, py36, flake8
[testenv]
deps = -rrequirements-dev.txt
commands =
coverage erase
coverage run --source=py_zipkin/ -m pytest -vv --benchmark-skip {posargs:tests}
coverage report -m --show-missing --fail-under 100
[testenv:pre-commit]
basepython = /usr/bin/python2.7
deps = pre-commit>=0.2.10
commands = pre-commit {posargs}
[testenv:flake8]
basepython = /usr/bin/python2.7
deps = flake8
commands =
flake8 py_zipkin tests
[testenv:benchmark]
basepython = python3.6
deps =
-rrequirements-dev.txt
commands =
python -m pytest -vv --capture=no {posargs:tests/profiling} \
--benchmark-only --benchmark-min-rounds=15 \
--benchmark-group-by func --benchmark-name short \
--benchmark-save=benchmark --benchmark-save-data \
--benchmark-histogram=.benchmarks/benchmark
[flake8]
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,docs,python_zipkin/thrift/zipkinCore
max_line_length = 83