Skip to content

pre-commit hook raises runtimeerror on not builtin packages #11

@d-chris

Description

@d-chris

Issue

pre-commit can' t find the imports for template if its not a builtin package of python.

RuntimeError     docs\README.md.jinja2...........................   Error importing examples.example1

Triage

pre-commit creates a virtual environement and pdoc can't find a non built-in package or file.

Workaround

instead of the pre-commit hook install jinja2pdoc in your python environment and use the command-line interface as package.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions