Skip to content

Commit

Permalink
Specifically pin pyproject.toml as pytest config source
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jfrost-mo committed Dec 22, 2023
1 parent defaf37 commit eb12a6b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
addopts = ["--import-mode=importlib", "--verbose", "--cov", "--cov-append"]
addopts = [
"--import-mode=importlib",
"--verbose",
"--cov",
"--cov-append",
"--cov-config=pyproject.toml",
]
filterwarnings = ['ignore::DeprecationWarning:pytest']
minversion = "7"
pythonpath = ["src"]
Expand Down

0 comments on commit eb12a6b

Please sign in to comment.