-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
Warn if there's no docstring for documented things #3222
Warn if there's no docstring for documented things #3222
Conversation
This way we can have a one-way ratchet!
408c5a3
to
8f8641c
Compare
I was wondering whether the pyright check for docstrings is still useful and I guess it is? If we decide it's still useful we should probably make the check type-completeness script not remove any warnings about docstrings, because AFAICT that's what it currently does? IMO "does documentation show up on hover" is less important than "does documentation exist on RTD" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh that is a much cleaner implementation than I expected.
Have you checked that outputting on EDIT: yeah can be seen in https://readthedocs.org/projects/trio/builds/27488118/logger.warning
will fail CI? If so, then this looks great
If I recall correctly it caught a missing docstring in the not too distant past, but you're right it's less important if it's not a docstring that would show up in the docs
it only removes known warnings in the same manner as your "UNDOCUMENTED", and looking closer at the list I'm seeing substantial overlap between them. The primary differences being An issue tracking missing docstrings sounds like a good idea, I don't think anybody is especially aware of the stuff listed in (my personal favorite is |
Yeah. TBH I think pyright stuff is lower priority than missing in docs; so maybe edit the referenced issue to be about all docs stuff, and a seperate issue about the pyright docstrings (with like, some note that "this is less important than [other issue]") |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3222 +/- ##
===============================================
Coverage 100.00000% 100.00000%
===============================================
Files 124 124
Lines 18779 18779
Branches 1269 1269
===============================================
Hits 18779 18779 🚀 New features to boost your workflow:
|
References #3221
An earlier version found these:
Which at least seems right:
relative_deadline
is from the above issueSocketStream
has:undoc-members:
... for no good reason??Anyways we could probably edit the issue above for a checklist of every one of those so we have easy issues for anyone who wants to contribute!