Skip to content

Commit 1d324ad

Browse files
committed
chore: Configure pytest globally
1 parent c51abf8 commit 1d324ad

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

nipype/info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def get_nipype_gitversion():
153153
TESTS_REQUIRES = [
154154
"codecov",
155155
"coverage",
156-
"pytest",
156+
"pytest >= 6",
157157
"pytest-cov",
158158
"pytest-env",
159159
"pytest-timeout",

pyproject.toml

+21
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,24 @@ build-backend = "setuptools.build_meta"
44

55
[tool.black]
66
skip-string-normalization = true
7+
8+
[tool.pytest.ini_options]
9+
minversion = "6"
10+
testpaths = ["nipype"]
11+
log_cli_level = "INFO"
12+
xfail_strict = true
13+
norecursedirs = [".git"]
14+
addopts = [
15+
"-svx",
16+
"-ra",
17+
"--strict-config",
18+
"--strict-markers",
19+
"--doctest-modules",
20+
"--cov=nipype",
21+
"--cov-report=xml",
22+
"--cov-config=pyproject.toml",
23+
]
24+
doctest_optionflags = "ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS"
25+
env = "PYTHONHASHSEED=0"
26+
filterwarnings = ["ignore::DeprecationWarning"]
27+
junit_family = "xunit2"

0 commit comments

Comments
 (0)