-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Added nitpick options #2508
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
Added nitpick options #2508
Conversation
|
I made a table of the remaining broken links with this in place: https://gist.github.com/astrofrog/7213e27ae31b1a36464f |
|
and I've already fixed some of those, will open a PR in a few minutes. |
|
@bsipocz - just for info, I fixed a few links, but I'm happy to rebase later. I also started adding exceptions for the numpy docstrings. |
|
I've also opened a PR (#2509) with the finish packages (units and utils). |
|
Either case. |
|
I now updated the gist, there are ~200 warnings left: https://gist.github.com/astrofrog/7213e27ae31b1a36464f We shouldn't touch the coordinates ones, so that leaves 160 or so warnings. @bsipocz - if you do want to fix any more, please work from my branch and open a PR against my branch, since the contents of this PR will already reduce the number of warnings. |
|
I'm working on some more fixes |
|
@astrofrog - sorry, I couldn't figure out yet how to do a commit or PR in this branch. I guess I need to create a new branch and then |
|
@bsipocz - the easiest way to do it is: Then open a PR as usual but when you create the PR you have the option of editing where the PR is made to, and choose |
|
I've updated the gist at https://gist.github.com/astrofrog/7213e27ae31b1a36464f - there are no 150 links to fix, around 50 of which are related to coordinates (so we shouldn't touch those). |
|
Some of the table/column methods are also not showing in the API docs (#2510) so we can't really fix that yet. |
|
@eteq - this PR re-enables the use of intersphinx on Travis. It seems to work fine and is required if we turn on @mdboom - some of the base classes have to be listed in the |
|
The smart resolver can be made smarter about private classes and methods -- I think it's fine to assume that private classes and methods won't be in the docs, therefore we can ignore broken references to them outright. I've filed a PR against this for that. Over time, there are probably other classes in the |
|
@mdboom - perfect, thanks! I agree that we should either explicitly privatize the remaining base classes or add them to the docs (though I agree it can wait). |
|
@astrofrog - I think the reason why we turned it off on travis is because some of the intersphinx repos are not reliably on. That is, transitent failure in any of the intersphinx repos get turned into sphinx warnings, which makes travis indicate the build failed. So if we turn it back on, that just means we may get more red herring failures in the Travis sphinx build. |
|
@eteq - hmm, in that case we won't be able to enable the |
|
It might be possible to instead actually catch those particular errors and have them not count as "failing" on travis... although I'm not sure offhand how easy that will be. Another option is to just turn it on and hope for the best. It might be that things have improved and the sites we turned it off for are no longer as unstable...? Or, from the other point of view, we already have a number of "random" test failures that we've just come to accept, and this might now be less often than those... |
|
Ok - let's see if the failures happen while we work on this PR. It's not finished yet, so there will be a number of builds before we are done. |
|
Is it me screwing up my copy of this branch, or indeed something happened with the inheritance diagrams? Local warnings are back at the 500+ level. |
|
Ok, something went wrong here... Investigating. |
|
@bsipocz - I need to check, but it may be that the inheritance diagram fixes were not back-ported to the astropy-helpers. |
|
@bsipocz - we will need astropy/astropy-helpers#6 to be merged to get rid of the warnings again. |
|
Ohh, well. I have the feeling one can never get rid of all the warnings, a few will always pop up from unexpected places :) |
…ython 3 intersphinx file
…for the astropy.config workarounds
|
I'm going to go ahead and merge if Travis passes since it's hard to keep up with all the rebasing. In any case, the only potentially controversial change is setting |
|
Thanks for all your help @bsipocz! |
|
Thanks for the work on this. I haven't been following closely but are there are hints for doc authors to avoid having problems? Maybe a top-3 list of mistakes that were fixed? I guess it is pretty important now for people submitting PRs to run tests via |
|
I think one of the top 3 is using single backticks to refer to parameters and attributes rather than using double backticks. |
|
@taldcroft - actually people should really run |
|
I know this is way late, but I have no objections, @astrofrog 😉 - thanks for the work, both @astrofrog and @bsipocz ! |
|
@astrofrog, @eteq - what do you think about including the nitpick modifications of Should I open an issue/PR for it? |
|
@bsipocz: That's a good idea: any "hard procedural problems" we're solving in astropy, we should make available to affiliated packages. However, as I think we're learning about a lot of features in astropy_helpers etc. lately, we should make this "opt-in", so that affiliated packages that want to devote the effort to making things perfect and clean can, and those without the time/inclination right now can put it off. |
|
Well, then I'll look into this later this week. |
Added nitpick options
@mdboom @eteq @bsipocz - this shows how we can ignore certain references when running with
nitpicky=True. We can merge this because I set it toFalseby default.(related to #1221)