-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
47 lines (42 loc) · 877 Bytes
/
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
[tox]
envlist =
lint
types
py3{7,8,9,10}
skip_missing_interpreters = True
[base]
passenv =
NXDRIVE_TEST_NUXEO_URL
SENTRY_DSN
SENTRY_ENV
SKIP_SENTRY
deps =
-e .[oauth2, s3]
flaky
moto
pytest
pytest-cov
responses
sentry-sdk
[testenv:unit]
description = Unit tests
passenv = {[base]passenv}
deps = {[base]deps}
commands = python -m pytest {posargs} tests/unit
[testenv:functional]
description = Fuctional tests
passenv = {[base]passenv}
deps = {[base]deps}
commands = python -m pytest {posargs} tests/functional
[testenv:lint]
description = Code quality check
basepython = python3
deps = flake8
commands =
python -m flake8 examples nuxeo tests
[testenv:types]
description = Type annotations check
basepython = python3
ignore_outcome = true
deps = mypy
commands = python -m mypy --ignore-missing-imports nuxeo tests