This repository has been archived by the owner on Nov 18, 2024. It is now read-only.
forked from dandi/dandi-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
83 lines (76 loc) · 2.52 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[tox]
envlist = lint,typing,py3
[testenv]
setenv =
DANDI_ALLOW_LOCALHOST_URLS=1
DANDI_PAGINATION_DISABLE_FALLBACK=1
passenv = DANDI_*,USER
extras =
extras
test
commands =
# Using pytest-cov instead of using coverage directly leaves a bunch of
# .coverage.$HOSTNAME.#.# files lying around for some reason
coverage erase
coverage run -m pytest -v {posargs} dandi
coverage combine
coverage report
[testenv:lint]
skip_install = true
deps =
codespell~=2.0
flake8
commands =
codespell dandi docs tools setup.py
flake8 --config=setup.cfg {posargs} dandi setup.py
[testenv:typing]
deps =
mypy != 1.11.0
types-python-dateutil
types-requests
commands =
mypy dandi
[testenv:docs]
basepython = python3
deps = -rdocs/requirements.txt
extras = test
changedir = docs
commands = sphinx-build -E -W -b html source build
[pytest]
addopts = --tb=short --durations=10 --timeout=300
markers =
integration
obolibrary
filterwarnings =
error
ignore:No cached namespaces found .*:UserWarning
ignore:ignoring namespace '.*' because it already exists:UserWarning
ignore::DeprecationWarning:responses
ignore::DeprecationWarning:requests_toolbelt
# <https://github.com/h5py/h5py/issues/1765>
# <https://github.com/dandi/dandi-cli/pull/275>
ignore:.* size changed, may indicate binary incompatibility.*:RuntimeWarning
# <https://github.com/hdmf-dev/hdmf/issues/547>
ignore:\s*safe_load will be removed.*:PendingDeprecationWarning:hdmf
ignore:\s*load will be removed.*:PendingDeprecationWarning:ruamel.yaml
ignore:Passing None into shape arguments.*:DeprecationWarning:h5py
ignore:the imp module is deprecated:DeprecationWarning
ignore:`Unit` has been deprecated:DeprecationWarning:humanize
ignore:The distutils package is deprecated:DeprecationWarning:joblib
ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated.*:DeprecationWarning:dateutil
ignore:\s*Pyarrow will become a required dependency of pandas:DeprecationWarning
ignore:.*Value with data type .* is being converted:hdmf.build.warnings.DtypeConversionWarning
ignore:.*find_spec\(\) not found:ImportWarning
ignore:'cgi' is deprecated:DeprecationWarning:botocore
ignore:.*unclosed.*:ResourceWarning:vcr
# addressed in joblib 0.8.2-826-g05caf07
ignore:(ast.Num|Attribute n) is deprecated.*:DeprecationWarning:joblib
[coverage:run]
parallel = True
source = dandi
[coverage:report]
precision = 2
exclude_lines =
pragma: no cover
if TYPE_CHECKING:
\.\.\.