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.