-
Notifications
You must be signed in to change notification settings - Fork 27
/
tox.ini
54 lines (47 loc) · 1.12 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
[tox]
envlist =
{py37,py38,py39,py310,py311,py312,pypy310}-urllib3_{v1,v2}
lint
docs
[testenv]
commands = pytest --cov {posargs}
passenv =
NEW_RELIC_LICENSE_KEY
setenv =
COVERAGE_FILE={envdir}/.coverage.{envname}
COVERAGE_RCFILE={toxinidir}/tox.ini
deps =
# Base Dependencies
pytest
pytest-cov
# Test Suite Dependencies
urllib3_v1: urllib3<2
urllib3_v2: urllib3>=2,<3
[testenv:lint]
skip_install = True
commands =
black --check src/ docs/ tests/ {posargs}
flake8 src/ tests/ {posargs}
deps =
black
flake8
[testenv:docs]
commands = sphinx-build -d "{toxinidir}/docs_doctree" "{toxinidir}/docs/" "{toxinidir}/docs/_build" -W {posargs}
deps =
sphinx<8
sphinx_rtd_theme
[coverage:run]
branch = True
source = newrelic_telemetry_sdk
omit =
**/version.py
[coverage:paths]
source =
src/newrelic_telemetry_sdk/
.tox/**/site-packages/newrelic_telemetry_sdk/
/__w/**/site-packages/newrelic_telemetry_sdk/
/home/runner/**/src/newrelic_telemetry_sdk/
[coverage:html]
directory = ${TOX_ENV_DIR-.}/htmlcov
[coverage:xml]
output = ${TOX_ENV_DIR-.}/coverage.xml