-
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EAFP: Add try/except around each attempt to load discover_this #474
Comments
I'm in to improving the module section (it's not the best), though I don't understand what issue are you having with pdocs, could you elaborate on the error? |
I'm not sure. I think the issue is how Suppressing the There are very few packages (maybe ~4 in total on pypi) with the prefix |
Here is the full traceback: ~/Developer/packages/cz_legacy main ?1 > poetry run pdocs as_markdown cz_legacy
Error importing cz_legacy: partially initialized module 'cz_legacy' has no attribute 'discover_this' (most likely due to a circular import) |
Hi @KyleKing , it seems https://github.com/commitizen-tools/commitizen/pull/480/files might have been tackled on https://github.com/commitizen-tools/commitizen/pull/480/files. I'll close this issue for now. But feel free to let me know or reopen the issue, if I misunderstand the purpose of this issue |
I have an issue with pdocs, that the package being documented (
cz_Legacy
) isn't fully initialized when commitizen is looking for discover_this. I know this is an edge case and there are plans to improve plugins (#287), but I wondered if you would be open to a small rewrite:commitizen/commitizen/cz/__init__.py
Lines 15 to 19 in 32916ab
To something like this:
Or could be something like:
The text was updated successfully, but these errors were encountered: