Skip to content

Commit

Permalink
Remove Redundant Pathspec from Doctest Collection
Browse files Browse the repository at this point in the history
The `run_doctests.py` script was manually collecting the
`linearmoney.ext` module, but the extensions module is collected as part
of the root `linearmoney` module by pdoc, so this was redundant and was
causing a warning to be printed when running the `docs:test-in-source`
environment script.

This is fixed now.
  • Loading branch information
GrammAcc committed Jul 7, 2024
1 parent d11c649 commit bf85f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/run_doctests.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _run_module_doctests(module: pdoc.doc.Module):

# Mostly copied from pdoc.pdoc() implementation:
all_modules: list[pdoc.doc.Module] = []
for module_name in pdoc.extract.walk_specs(["linearmoney", "linearmoney.ext"]):
for module_name in pdoc.extract.walk_specs(["linearmoney"]):
try:
all_modules.append(pdoc.doc.Module.from_name(module_name))
except RuntimeError:
Expand Down

0 comments on commit bf85f5f

Please sign in to comment.