-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Support skip comment markup like # noqa #41
Comments
hey @profgav (cc @GavinHuttley) - I definitely like this idea. In investigating this idea, it seems like this is will take a bit of work. Thanks for the idea! |
If no one is working on it I can try my hands around it. @econchick 😃 |
@Pradhvan 💯! this issue is yours if you want it! Very much appreciated - thank you! |
Great! I Will try my best 🙌🏾 |
I tried going through the code base but felt a bit overwhelmed. @econchick if it's not too much of a trouble, can you give out some pointers on where to start and what would be have been your approach. Even as small as a tl'dr type short text would help a lot. |
Hey @Pradhvan, sure! So The idea for this PR is to be able to comment on an object for interrogate to ignore, something like: def my_undocumented_function(): # nodocqa
return "foo" However, the The aforementioned stack overflow post has answers suggesting the use of the We could also take a look at how In general, I'm not exactly sure how to approach this without digging further. It seems like changes would need to be in Once something is implemented, I would then time it against the code base itself, maybe the test fixtures, and other code bases I have access to (i.e. whatever's local). I would be very cautious because we wouldn't want to add too much more overhead and take a performance hit since there's a possibility that there can be a lot of duplicate processing. Something like +15% longer may be fine, but not like 100% longer for Hope this helps! |
@econchick thank you for the detailed explanation. This definitely helped make more sense of what I need to do. 🙌🏾 |
FYI, in case this is still open for input, pdoc3 uses the special variable |
Is there any workaround related to this? Whilst waiting for |
Awesome, extremely useful project, thank you!! (Just noticed I'm signed in using a GH account I created strictly for teaching purposes .. doh! My normal handle is @GavinHuttley).
Describe the feature you'd like
I have cases where we use decorators to extend docstrings from other methods / classes, etc.. Rather than try to catch such a special case, perhaps adding support for a comment annotation (like
# noqa
, as used by linters) that indicates a method / function to be ignored?Is your feature request related to a problem?
Only in that methods documented in this way are not recognised as such.
Your Environment
interrogate
version(s) (interrogate --version
): 1.2.0Additional context
None.
The text was updated successfully, but these errors were encountered: