-
Notifications
You must be signed in to change notification settings - Fork 23
/
tox.ini
116 lines (106 loc) · 2.72 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
; See https://tox.wiki/en
[tox]
requires =
tox>=4
; run lint by default when just calling "tox"
env_list = lint
; ENVIRONMENTS
; ------------
[style]
description = common environment for style checkers (rely on pre-commit hooks)
skip_install = true
deps =
pre-commit
[global_var]
passenv =
PY_COLORS
FORCE_COLOR
NO_COLOR
CLICOLOR
CLICOLOR_FORCE
[reproschema]
description = run tests
skip_install = true
deps =
{toxinidir}/reproschema-py
; COMMANDS
; --------
[testenv:lint]
description = run all linters and formatters
skip_install = true
deps =
{[style]deps}
commands =
pre-commit run --all-files --show-diff-on-failure {posargs:}
[testenv:test]
description = run tests
passenv = {[global_var]passenv}
extras = test
deps =
{[reproschema]deps}
commands =
pytest --cov=ecobidas --cov-report=xml --cov-report=html {posargs:}
[testenv:doc]
description = serve doc
skip_install = true
deps =
-r {toxinidir}/requirements.txt
commands =
mkdocs serve
[testenv:update]
description = update TSVs
package = editable
deps =
{[reproschema]deps}
-r artemis_schema/requirements.txt
commands =
python artemis_schema/convert_table/src/download.py
ecobidas update --schema core-
ecobidas update --schema eyetracking
ecobidas update --schema meeg-
ecobidas update --schema mri-
ecobidas update --schema neurovault
ecobidas update --schema pet
ecobidas update --schema reexecution
ecobidas update --schema resp-
[testenv:convert]
description = convert tsv to jsonld
package = editable
deps =
{[reproschema]deps}
commands =
; ecobidas convert --schema artemis- --output_dir artemis_schema/schemas
ecobidas convert --schema eyetracking
ecobidas convert --schema neurovault
ecobidas convert --schema core-
ecobidas convert --schema mri-design
ecobidas convert --schema mri-allseq
ecobidas convert --schema mri-acq
ecobidas convert --schema mri-mass_univariate
ecobidas convert --schema mri-multivariate
ecobidas convert --schema mri-preproc
ecobidas convert --schema mri-results
ecobidas convert --schema pet
ecobidas convert --schema reexecution
ecobidas convert --schema resp- --output_dir cobidas_schema/response_options
[testenv:validate]
description = validate jsonld
skip_install = true
deps =
{[reproschema]deps}
pre-commit
commands =
pre-commit run -a check-json
reproschema -l DEBUG validate tests/data/activities
reproschema -l DEBUG validate tests/data/protocols
[testenv:validate_all]
description = validate jsonld in subdmodules
skip_install = true
deps =
{[testenv:validate]deps}
allowlist_externals =
make
commands =
{[testenv:validate]commands}
make -C cobidas_schema validate
make -C artemis_schema validate