-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathtox.ini
More file actions
46 lines (41 loc) · 1 KB
/
tox.ini
File metadata and controls
46 lines (41 loc) · 1 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
[tox]
envlist = lint,typing,py3
isolated_build = True
[testenv]
extras = test
passenv =
DANDI_*
DATACITE_DEV_LOGIN
DATACITE_DEV_PASSWORD
NO_ET
commands =
pytest -v {posargs}
[testenv:lint]
skip_install = true
deps =
codespell~=2.0
flake8
commands =
codespell dandischema
flake8 {posargs} dandischema
[testenv:typing]
deps =
mypy
types-jsonschema
types-requests
extras = test
commands =
mypy dandischema
[pytest]
# --import-mode=importlib avoids ImportPathMismatchError when the package
# (including dandischema/tests/) is also installed into the tox venv and the
# pytest plugin (registered via [project.entry-points.pytest11]) eagerly
# imports `dandischema` from site-packages.
addopts = --cov=dandischema --tb=short --durations=10 --import-mode=importlib
filterwarnings =
error
# <https://github.com/dateutil/dateutil/issues/1284>
ignore:.*utcfromtimestamp.* is deprecated:DeprecationWarning:dateutil
[coverage:run]
parallel = True
source = dandischema