37 строки
770 B
INI
37 строки
770 B
INI
[tox]
|
|
skipsdist = True
|
|
skip_missing_interpreters = True
|
|
envlist =
|
|
py3{7,8,9,10,11}-distro
|
|
lint
|
|
|
|
[testenv]
|
|
deps =
|
|
-r test-requirements.txt
|
|
|
|
changedir =
|
|
distro: azure-monitor-opentelemetry/tests
|
|
|
|
commands_pre =
|
|
py3{7,8,9,10,11}: python -m pip install -U pip setuptools wheel
|
|
distro: pip install {toxinidir}/azure-monitor-opentelemetry
|
|
|
|
commands =
|
|
distro: pytest {posargs}
|
|
|
|
[testenv:lint]
|
|
basepython: python3.11
|
|
recreate = True
|
|
deps =
|
|
-r lint-requirements.txt
|
|
|
|
commands_pre =
|
|
python -m pip install -e {toxinidir}/azure-monitor-opentelemetry
|
|
|
|
commands =
|
|
black --config pyproject.toml {toxinidir} --diff --check
|
|
isort --settings-path .isort.cfg {toxinidir} --diff --check-only
|
|
flake8 --config .flake8 {toxinidir}
|
|
; TODO
|
|
; pylint {toxinidir}
|