-
Notifications
You must be signed in to change notification settings - Fork 47
/
tox.ini
40 lines (34 loc) · 946 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
[tox]
envlist = pre-commit, py37, py38, mypy
[testenv]
deps = -rrequirements-dev.txt
extras = protobuf
commands =
coverage erase
# Check that we have 100% unit test coverage, without counting integration tests
coverage run --source=py_zipkin/ -m pytest --ignore=tests/integration -vv {posargs:tests}
coverage report -m --show-missing --fail-under 100
# Now run integration tests
py.test -vv tests/integration
[testenv:venv]
basepython = python3.8
envdir = venv
commands =
[testenv:pre-commit]
basepython = python3.7
deps = pre-commit
commands =
pre-commit install -f --install-hooks
pre-commit run --all-files {posargs}
[testenv:mypy]
basepython = python3.8
deps =
-rrequirements-dev.txt
mypy
commands =
mypy py_zipkin/
[flake8]
exclude = .git,__pycache__,.tox,docs,py_zipkin/encoding/protobuf/zipkin_pb2.py
max_line_length = 88
[coverage:report]
omit = py_zipkin/encoding/protobuf/zipkin_pb2.py