-
Notifications
You must be signed in to change notification settings - Fork 668
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
Towards sphinx >= 3 #3438
Towards sphinx >= 3 #3438
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #3438 +/- ##
========================================
Coverage 93.77% 93.77%
========================================
Files 176 176
Lines 23219 23219
Branches 3308 3308
========================================
Hits 21773 21773
Misses 1395 1395
Partials 51 51
Continue to review full report at Codecov.
|
This is 100% duplicate object stuff... I started working on it but it's incredibly tedious work. Best thing we can do here is have folks contribute a few changes at a time until we clear all the warnings. |
I am adding micro-commits that need to be squashed. This should make it easier to resolve issues when multiple people contribute. |
Hello @IAlibay! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2021-11-03 00:33:54 UTC |
This is what's currently left to do (with sphinx 4.0.2)
|
- only explicitly include TRZReader and TRZWriter - explicitly reference base.Timestep as type
Hide the property doc with :meta private:, see https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#directives available since sphinx 3.0
- fix sphinx duplicate indexing complaints by using the explicit attribute docs and using :meta private: for property docs - update return types for methods - reorganized main Universe doc string to conform to numpydoc
Note that one common problem is that we document a managed attribute (
I chose the explicit attr description because these tend to be important attributes that should be listed together instead of spread across. By keeping the explicit docs, the interactive doc string is also more readable. |
Locally with sphinx 4.2 I have no more warnings and the build succeeds without erroring. |
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.
Thanks for doing the work to fix the errors, @IAlibay @richardjgowers @orbeckst. Docs are building (https://mdanalysis--3438.org.readthedocs.build/en/3438/documentation_pages/core/universe.html#MDAnalysis.core.universe.Universe.angles) and look good so I'll approve -- just curious about the use of meta private
and whether it's needed.
Co-authored-by: Lily Wang <[email protected]>
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.
Woo, we defeated the sphinx!
Fixes #3224 #2667
Changes made in this Pull Request:
PR Checklist