forked from microsoft/opentelemetry-azure-monitor-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
70 lines (58 loc) · 1.24 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
59
60
61
62
63
64
65
66
67
68
69
70
[tox]
skipsdist = True
skip_missing_interpreters = True
envlist =
py3{4,5,6,7,8}-test-{azure_monitor}
py3{4,5,6,7,8}-coverage
lint
docs
[travis]
python =
3.8: py38, lint, docs
[testenv]
deps =
-c dev-requirements.txt
test: pytest
coverage: pytest
coverage: pytest-cov
mypy: mypy
changedir =
test-azure_monitor: azure_monitor/tests
commands_pre =
python -m pip install -U pip setuptools
test-azure_monitor: pip install {toxinidir}/azure_monitor
coverage: pip install -e {toxinidir}/azure_monitor
commands =
test: pytest {posargs}
coverage: coverage erase
coverage: pytest --ignore-glob=*/setup.py --cov azure_monitor --cov-append --cov-report term-missing
coverage: coverage report
[testenv:lint]
basepython: python3.8
recreate = True
deps =
-c dev-requirements.txt
pylint
flake8
isort
black
commands_pre =
pip install ./azure_monitor
commands =
black . --diff --check
isort --diff --check-only --recursive .
flake8
bash ./scripts/pylint.sh
[testenv:docs]
deps =
-c docs-requirements.txt
sphinx
sphinx-rtd-theme
sphinx-autodoc-typehints
# External
opentelemetry-api
opentelemetry-sdk
psutil
changedir = docs
commands =
sphinx-build -E -a --keep-going -b html -T . _build/html