pdoc3 / pdoc3/pdoc

pre-commit hook usage with virtualenv fails

Open
#313 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.2k
Forks
146
PR merge metrics
No merged PRs in 30d

Description

Expected Behavior

After running pre-commit hook, to have generated pdoc output in the directory

Actual Behavior

ModuleNotFoundError is raised when running the pdoc pre-commit hook

Steps to Reproduce
  1. Install pre-commit framework
  2. Add pdoc to .pre-commit-config.yaml hooks
  3. Install pre-commit hooks
  4. Run the command "pre-commit run --all-files"
Additional info
  • pdoc version: 0.9.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the pdoc hook configured in .pre-commit-config.yaml, using pre-commit run --all-files. Trace why the virtualenv cannot import the pdoc module; done means the hook generates pdoc output in the expected directory without raising ModuleNotFoundError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.