forked from DataDog/datadogpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
61 lines (55 loc) · 1.28 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
55
56
57
58
59
60
61
[tox]
minversion = 3.7.0
skip_missing_interpreters = true
envlist =
py{27,35,36,37,38,py2,py3}
flake8
integration
mypy
[testenv]
passenv = DD_TEST_CLIENT*
usedevelop = true
deps =
click
freezegun
mock
pytest
pytest-vcr
python-dateutil
vcrpy
commands =
!integration: pytest -v tests/unit {posargs}
integration: pytest -v tests/integration -m "not admin_needed" {posargs}
[testenv:integration-admin]
passenv = DD_TEST_CLIENT*
usedevelop = true
deps =
click
freezegun
mock
pytest
pytest-vcr
python-dateutil
vcrpy
commands =
pytest -v tests/integration -m "admin_needed" {posargs}
[testenv:flake8]
skip_install = true
deps =
flake8==3.7.9
commands = flake8 datadog
[testenv:mypy]
# Mypy requires Python 3.5 or higher (but it can still type-check Python 2
# code).
basepython = python3
skip_install = true
deps =
mypy==0.770
commands =
mypy --config-file mypy.ini datadog
mypy --config-file mypy.ini --py2 datadog
[flake8]
max-line-length = 120
[pytest]
markers =
admin_needed: marks tests that require the user associated with the application key to have admin rights, or destructive tests for the destination org. Do not run unless you know what you are doing. To run use `tox -e integration-admin`