forked from datalad/datalad-metalad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
86 lines (80 loc) · 2.2 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
[tox]
envlist = py3
#,flake8
[testenv:py3]
changedir = __testhome__
commands = pytest -c ../tox.ini -v {posargs} --pyargs datalad_metalad
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
commands =
codespell
[testenv:flake8]
deps = flake8
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[pytest]
filterwarnings =
ignore::DeprecationWarning:^datalad
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_metalad
exclude = .tox,.venv,venv-debug,build,dist,doc,git/ext/