forked from datalad/datalad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
124 lines (116 loc) · 3.43 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[tox]
envlist = py3,lint,typing
#,flake8
[testenv:py3]
changedir = __testhome__
commands = pytest -c ../tox.ini -v {posargs} --pyargs datalad
extras = full
# tox 2. introduced isolation from invocation environment
# HOME is used by annex standalone atm
# https://git-annex.branchable.com/bugs/standalone_builds_shouldn__39__t_pollute___126____47__.ssh_with_helpers_merely_upon_annex_init/
# so let's pass it, though in the future we should isolate
# it back to guarantee that the tests do not rely on anything in
# current user HOME
passenv=HOME
setenv=
DATALAD_LOG_LEVEL=DEBUG
[testenv:lint]
skip_install = true
deps =
codespell~=2.0
pylint~=2.15
commands =
codespell
# pylinting limited set of known obvious issues only
pylint -d all -e W1202 datalad setup.py
[testenv:flake8]
commands = flake8 {posargs}
[testenv:typing]
extras = tests
deps =
distro # Remove when CI no longer uses Python 3.7 for type-checking.
types-psutil
commands =
# TODO: rich "coverage" sufficient to remove --follow-imports skip, and just specify datalad .
# See https://github.com/datalad/datalad/issues/6884
mypy --follow-imports skip {posargs} \
datalad/api.py \
datalad/cmd.py \
datalad/downloaders/providers.py \
datalad/interface/results.py \
datalad/runner \
datalad/support/annex_utils.py \
datalad/support/ansi_colors.py \
datalad/support/collections.py \
datalad/support/cookies.py \
datalad/support/digests.py \
datalad/support/gitrepo.py \
datalad/support/globbedpaths.py \
datalad/support/path.py \
datalad/support/strings.py \
datalad/typing.py \
datalad/utils.py
[testenv:venv]
commands = {posargs}
[testenv:docs]
basepython = python3
extras =
devel-docs
full
changedir = docs
commands = sphinx-build -E -W -b html source build
[pytest]
filterwarnings =
error::DeprecationWarning:^datalad
# TODO: https://github.com/datalad/datalad/issues/7435
ignore:pkg_resources is deprecated:DeprecationWarning:
error:.*yield tests:pytest.PytestCollectionWarning
ignore:distutils Version classes are deprecated:DeprecationWarning
# comes from boto
ignore:the imp module is deprecated
# workaround for https://github.com/datalad/datalad/issues/6307
ignore:The distutils package is deprecated
markers =
fail_slow
githubci_osx
githubci_win
integration
known_failure
known_failure_githubci_osx
known_failure_githubci_win
known_failure_osx
known_failure_windows
network
osx
probe_known_failure
serve_path_via_http
skip_if_adjusted_branch
skip_if_no_network
skip_if_on_windows
skip_if_root
skip_known_failure
skip_nomultiplex_ssh
skip_ssh
skip_wo_symlink_capability
slow
turtle
usecase
windows
with_config
with_fake_cookies_db
with_memory_keyring
with_sameas_remotes
with_testrepos
without_http_proxy
# Ensure that assertion helpers in utils_pytest.py get rewritten by pytest:
python_files = test_*.py *_test.py utils_pytest.py
[flake8]
#show-source = True
# E265 = comment blocks like @{ section, which it can't handle
# E266 = too many leading '#' for block comment
# E731 = do not assign a lambda expression, use a def
# W293 = Blank line contains whitespace
#ignore = E265,W293,E266,E731
max-line-length = 120
include = datalad
exclude = .tox,.venv,venv-debug,build,dist,doc,git/ext/