forked from DataDog/datadog-sync-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
36 lines (33 loc) · 1.01 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
[tox]
minversion = 3.9.0
skip_missing_interpreters = true
envlist =
py{39,311}
ruff
black
[testenv]
passenv = DD_SOURCE_*,DD_DESTINATION_*,PYTEST_*
setenv =
DD_HTTP_CLIENT_RETRY_TIMEOUT = {env:DD_HTTP_CLIENT_RETRY_TIMEOUT:300}
MAX_WORKERS = 1
RECORD = {env:RECORD:false}
DD_DESTINATION_API_URL = {env:DD_DESTINATION_API_URL:https://api.datadoghq.eu}
DD_DESTINATION_API_KEY = {env:DD_DESTINATION_API_KEY:fake}
DD_DESTINATION_APP_KEY = {env:DD_DESTINATION_APP_KEY:fake}
DD_SOURCE_API_URL = {env:DD_SOURCE_API_URL:https://api.datadoghq.com}
DD_SOURCE_API_KEY = {env:DD_SOURCE_API_KEY:fake}
DD_SOURCE_APP_KEY = {env:DD_SOURCE_APP_KEY:fake}
usedevelop = true
extras = tests
commands =
!integration: pytest -v {posargs}
integration: pytest -v -m "integration" {posargs}
[testenv:ruff]
skip_install = true
deps =
ruff==0.0.278
commands = ruff --line-length 120 {posargs} datadog_sync
[testenv:black]
deps =
black
commands = black --line-length 120 {posargs} datadog_sync