-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
80 lines (71 loc) · 2.1 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
[tox]
envlist = lint,typing,py3
isolated_build = True
[testenv]
passenv =
DATALAD_REGISTRY_PASSWORD
DATALAD_REGISTRY_PERSIST_DOCKER_COMPOSE
extras = tests
commands =
coverage erase
coverage run -m pytest {posargs} datalad_registry datalad_registry_client
coverage combine
coverage report
[testenv:lint]
skip_install = True
deps =
codespell~=2.2
flake8~=7.0
flake8-bugbear
flake8-builtins~=2.5
flake8-unused-arguments
commands =
codespell datalad_registry setup*py
flake8 --config=tox.ini datalad_registry datalad_registry_client
[testenv:typing]
deps =
mypy~=0.900
types-requests
commands =
mypy datalad_registry datalad_registry_client
[pytest]
addopts = --ignore=instance
filterwarnings =
error
ignore::DeprecationWarning:future
ignore:datalad.version module will be removed:DeprecationWarning
ignore:distutils Version classes are deprecated:DeprecationWarning
# comes from kombu (and others) needing a proper release
# https://github.com/celery/kombu/issues/1339#issuecomment-1267357454
ignore:SelectableGroups dict interface is deprecated. Use select.:DeprecationWarning:
# I think should be resolved elsewhere, not in our code
ignore:_SixMetaPathImporter.find_spec:ImportWarning:
ignore:unclosed file <_io.FileIO:ResourceWarning:
markers =
devserver: mark tests that require Flask development server
slow: mark tests as slow
[coverage:run]
parallel = True
source =
datalad_registry
datalad_registry_client
[flake8]
doctests = True
exclude = .*/,build/,dist/,instance/,venv/
hang-closing = False
max-doc-length = 88
max-line-length = 88
# Allow whitespace before ':' to avoid conflict with the default behavior of Black
extend-ignore = E203
unused-arguments-ignore-stub-functions = True
select = C,B,B902,B950,E,E242,F,I,U100,W
ignore = B005,E203,E262,E266,E501,I201,W503
[isort]
atomic = True
force_sort_within_sections = True
honor_noqa = True
lines_between_sections = 1
profile = black
reverse_relative = True
sort_relative_in_force_sorted_sections = True
known_first_party = datalad_registry,datalad_registry_client