opentelemetry-azure-monitor.../tox.ini

72 строки
1.2 KiB
INI
Исходник Обычный вид История

2020-01-31 22:37:26 +03:00
[tox]
skipsdist = True
skip_missing_interpreters = True
envlist =
2020-01-31 23:00:30 +03:00
py3{4,5,6,7,8}-test-{azure_monitor}
2020-02-01 00:45:04 +03:00
py3{4,5,6,7,8}-coverage
2020-01-31 22:37:26 +03:00
lint
2020-03-23 22:55:59 +03:00
docs
2020-01-31 22:37:26 +03:00
[travis]
python =
2020-03-23 22:55:59 +03:00
3.8: py38, lint, docs
2020-01-31 22:37:26 +03:00
[testenv]
deps =
-c dev-requirements.txt
test: pytest
coverage: pytest
coverage: pytest-cov
mypy: mypy
changedir =
test-azure_monitor: azure_monitor/tests
commands_pre =
2020-01-31 23:39:09 +03:00
python -m pip install -U pip setuptools
2020-01-31 23:31:19 +03:00
test-azure_monitor: pip install {toxinidir}/azure_monitor
2020-02-01 00:45:04 +03:00
coverage: pip install -e {toxinidir}/azure_monitor
2020-01-31 22:37:26 +03:00
commands =
test: pytest {posargs}
coverage: coverage erase
coverage: pytest --ignore-glob=*/setup.py --cov azure_monitor --cov-append --cov-report term-missing
2020-02-20 03:54:40 +03:00
coverage: coverage report
2020-01-31 22:37:26 +03:00
[testenv:lint]
2020-03-11 05:04:48 +03:00
basepython: python3.8
2020-01-31 22:37:26 +03:00
recreate = True
deps =
-c dev-requirements.txt
pylint
flake8
isort
black
2020-03-11 05:04:48 +03:00
psutil
2020-01-31 22:37:26 +03:00
commands_pre =
2020-03-12 23:45:50 +03:00
pip install ./azure_monitor
2020-01-31 22:37:26 +03:00
commands =
2020-03-12 22:50:03 +03:00
black . --diff --check
isort --diff --check-only --recursive .
flake8
bash ./scripts/pylint.sh
2020-03-23 22:55:59 +03:00
[testenv:docs]
deps =
-c dev-requirements.txt
sphinx
sphinx-rtd-theme
sphinx-autodoc-typehints
# External
opentelemetry-api
opentelemetry-sdk
psutil
changedir = docs
commands =
2020-03-24 22:28:02 +03:00
sphinx-build -E -a --keep-going -b html -T . _build/html