-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtox.ini
More file actions
104 lines (96 loc) · 1.92 KB
/
Copy pathtox.ini
File metadata and controls
104 lines (96 loc) · 1.92 KB
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
[tox]
requires =
tox>=4
tox-uv
envlist =
py31{0,1,2,3,4}-{full,pre}
py310-min
style
spellcheck
type
skip_missing_interpreters = true
# Configuration that allows us to split tests across GitHub runners effectively
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
3.14: py314
[gh-actions:env]
DEPENDS =
min: min
full: full
pre: pre
CHECK =
style: style
spellcheck: spellcheck
type: type
[testenv]
description = Pytest with coverage
labels = test
pip_pre =
pre: true
pass_env =
# getpass.getuser() sources for Windows:
LOGNAME
USER
LNAME
USERNAME
# Pass user color preferences through
PY_COLORS
FORCE_COLOR
NO_COLOR
CLICOLOR
CLICOLOR_FORCE
extras =
cli
runner =
full: uv-venv-lock-runner
!full: uv-venv-runner
dependency_groups =
test
uv_resolution =
min: lowest-direct
deps =
pre: git+https://github.com/bids-standard/bids-specification.git\#subdirectory=tools/schemacode
commands =
# Avoid SyntaxWarning being promoted to SyntaxError in Python 3.14, Datalad up to 1.3.2.
python -c 'import datalad'
coverage erase
coverage run -p -m bids_validator tests/data/bids-examples/ds000117
python -m pytest --doctest-modules --cov . --cov-append --cov-report term \
min: -Wignore \
--junitxml=test-results.xml {posargs}
coverage xml
[testenv:style{,-fix}]
description = Check and attempt to fix style
labels = check
deps =
ruff
skip_install = true
runner = uv-venv-runner
commands =
fix: ruff check --fix src/
fix: ruff format src/
!fix: ruff check src/
!fix: ruff format --diff src/
[testenv:spellcheck{,-fix}]
description = Check spelling
labels = check
deps =
codespell[toml]
skip_install = true
runner = uv-venv-runner
commands =
fix: codespell -w {posargs}
!fix: codespell {posargs}
[testenv:type]
description = Check type consistency
basepython = python3.13
labels = check
dependency_groups =
test
types
commands =
mypy src tests