Skip to content

Commit 4466c31

Browse files
committed
chore(test): Resolve pytest+tox interactions
1 parent bcc21b7 commit 4466c31

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

pyproject.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,21 @@ per-file-ignores = [
118118

119119
[tool.pytest.ini_options]
120120
minversion = "8"
121+
testpaths = ["src"]
121122
log_cli_level = "INFO"
122123
xfail_strict = true
123124
norecursedirs = [".git"]
124-
addopts = ["-svx", "--doctest-modules", "-ra", "--strict-config", "--strict-markers"]
125+
addopts = [
126+
"-svx",
127+
"-ra",
128+
"--strict-config",
129+
"--strict-markers",
130+
"--doctest-modules",
131+
# Config pytest-cov
132+
"--cov=src/smriprep",
133+
"--cov-report=xml",
134+
"--cov-config=pyproject.toml",
135+
]
125136
doctest_optionflags = "ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS"
126137
env = "PYTHONHASHSEED=0"
127138
filterwarnings = ["ignore::DeprecationWarning"]

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ extras = tests
6161
setenv =
6262
pre: PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
6363
pre: UV_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
64+
FSLOUTPUTTYPE=NIFTI_GZ
6465
uv_resolution =
6566
min: lowest-direct
6667

0 commit comments

Comments
 (0)