-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtox.ini
More file actions
57 lines (52 loc) · 1.11 KB
/
tox.ini
File metadata and controls
57 lines (52 loc) · 1.11 KB
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
[tox]
skipsdist = True
skip_missing_interpreters = True
envlist =
py3{9,10,11,12,13}-test
py3{9,10,11,12,13}-lambda
py3{9,10,11,12,13}-lint
ruff
[testenv]
setenv =
OTEL_PYTHON_DISABLED_INSTRUMENTATIONS = urllib3
SW_APM_DEBUG_LEVEL = 3
allowlist_externals = echo
usedevelop = true
deps =
-r {toxinidir}/dev-requirements.txt
commands =
pytest {posargs}
[testenv:py3{9,10,11,12,13}-test]
changedir = tests
deps =
{[testenv]deps}
-e {toxinidir}
setenv =
SW_APM_COLLECTOR = apm.collector.st-ssp.solarwinds.com
SW_APM_SERVICE_KEY = foo-bar:service-key
[testenv:py3{9,10,11,12,13}-lambda]
changedir = lambda/tests
deps =
{[testenv]deps}
-r {toxinidir}/lambda/tests/requirements.txt
[testenv:py3{9,10,11,12,13}-lint]
deps =
{[testenv]deps}
opentelemetry-api
opentelemetry-sdk
opentelemetry-instrumentation
opentelemetry-instrumentation-logging
opentelemetry-exporter-otlp
pylint>=3.0,<5.0
flake8
isort
black
psutil
commands =
python scripts/lint_and_format.py {posargs}
[testenv:ruff]
basepython: python3
deps =
pre-commit
commands =
pre-commit run --color=always --all-files {posargs}