Skip to content

Commit eb12a6b

Browse files
committed
Specifically pin pyproject.toml as pytest config source
This is needed to fix the coverage failures detailed at nedbat/coveragepy#512 We may instead need to have this listed somewhere else however, as if pytest can't pick up the pyproject.toml it can't read the line telling it to use it.
1 parent defaf37 commit eb12a6b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ requires = ["setuptools>=61.0"]
3232
build-backend = "setuptools.build_meta"
3333

3434
[tool.pytest.ini_options]
35-
addopts = ["--import-mode=importlib", "--verbose", "--cov", "--cov-append"]
35+
addopts = [
36+
"--import-mode=importlib",
37+
"--verbose",
38+
"--cov",
39+
"--cov-append",
40+
"--cov-config=pyproject.toml",
41+
]
3642
filterwarnings = ['ignore::DeprecationWarning:pytest']
3743
minversion = "7"
3844
pythonpath = ["src"]

0 commit comments

Comments
 (0)