Skip to content
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

Fix docstring build error #189

Closed
wants to merge 1 commit into from

Conversation

cbanek
Copy link
Contributor

@cbanek cbanek commented Oct 18, 2019

From Travis:
Warning, treated as error:
/home/travis/build/astropy/pyvo/build/lib/pyvo/io/uws/tree.py:docstring of pyvo.io.uws.tree.Parameters:22:Unexpected section title or transition.

@cbanek cbanek added this to the v1.1 milestone Oct 18, 2019
"""
Parameters element of a job
"""
"""Parameters element of a job"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My suspicion is that Parameters are recognized as a special heading and thus being complained about. Try to rephrase, maybe even saying The parameters element of a job would be enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay yeah, I think so too. I just tried escaping it, although maybe your way is better of just rephrasing it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay tried rephrasing it but it still seems to be trying to pick it up as a keyword. I figure there has to be some way of escaping it but I'm not sure what it is...

@codecov
Copy link

codecov bot commented Oct 18, 2019

Codecov Report

Merging #189 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #189   +/-   ##
=======================================
  Coverage   70.81%   70.81%           
=======================================
  Files          37       37           
  Lines        3906     3906           
=======================================
  Hits         2766     2766           
  Misses       1140     1140
Impacted Files Coverage Δ
pyvo/io/uws/tree.py 87.3% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 229820b...1ec3a9b. Read the comment docs.

@cbanek cbanek force-pushed the fix-travis-docstring branch 4 times, most recently from 706aa4a to dc27bd7 Compare October 18, 2019 23:56
@cbanek
Copy link
Contributor Author

cbanek commented Oct 19, 2019

Well, looks like even getting rid of the whole docstring it is still busted. I'm guessing it's the name fo the class that's the problem.

From Travis:
Warning, treated as error:
/home/travis/build/astropy/pyvo/build/lib/pyvo/io/uws/tree.py:docstring of pyvo.io.uws.tree.Parameters:22:Unexpected section title or transition.

Looks like sphinx is confusing Parameters (the name of the class)
for a heading of where the parameters to a function call should be.

This happens even if I get rid of all the docstrings.  So instead,
since this is a fairly internal class, I'm going to rename the class
to ParametersElement.
@cbanek
Copy link
Contributor Author

cbanek commented Oct 19, 2019

Well, can't say I'm exactly thrilled that I'm changing the name of a class to get the docs to build, but I guess it is what it is. This is a deep class that shouldn't be exposed to everyone, and the name of the XML part (still parameters) is passed in and not inferred from the name.

Open to other suggestions.

@cbanek
Copy link
Contributor Author

cbanek commented Nov 13, 2019

Closing this one out in favor of #193

@cbanek cbanek closed this Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants