Skip to content

pdoc does not work if "." is specified while specifying the directory #812

@anshuman-goel

Description

@anshuman-goel

Problem Description

When I specify . while running the pdoc command like python -m pdoc . it throws an error ValueError: No modules found matching spec: . I want to run pdoc from this directory because my pyproject.toml resides in there and I want to specify the command for generating the docs in there. I found a turnaround for this by specifying it like python -m pdoc ..\folder-name. It works but if my folder name has a - in the name it fails with the same error.

Steps to reproduce the behavior:

  1. Create a project with pyproject.toml file.
  2. Add the pdoc command using poetry poe extension
[tool.poe.tasks.generate-docs-localhost]
cmd = "python -m pdoc .
  1. Observe the error ValueError: No modules found matching spec: .

System Information

Paste the output of "pdoc --version" here.
15.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions