Skip to content

Commit

Permalink
Fix doctest behavior in pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
bindreams committed Mar 24, 2024
1 parent 217891b commit 0f7b05a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ max-line-length = 120

[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--doctest-modules --doctest-glob='README.md'"
addopts = [
"--import-mode=importlib",
"--doctest-modules",
"--doctest-glob=README.md",
"--ignore-glob=scripts"
]
doctest_optionflags = "IGNORE_EXCEPTION_DETAIL"

[tool.black]
Expand Down

0 comments on commit 0f7b05a

Please sign in to comment.