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

Silence sphinx warnings: Round 2 #3592

Merged
merged 7 commits into from
Dec 6, 2019

Conversation

keewis
Copy link
Collaborator

@keewis keewis commented Dec 4, 2019

As a follow-up to #3516, this silences the last warnings without -n, so once the doctest issue below is fixed we could replace -n with -W --keep-going and have the CI fail should a PR introduce new warnings.

There is, however, a problem with the doctest output for the 3D result of GroupBy.quantile: since the repr of a DataArray with at least 3 dimensions contains blank lines, it complains about a block quote ending without a blank line.

Also, the complaints from #3516 about duplicate definitions of attributes were caused by the Attributes section in the docstring of DataArray. I fixed this by removing the whole section, but we probably want to first make sure this does not remove any information (or maybe someone has a different idea?).

  • Passes black . && mypy . && flake8

@max-sixty
Copy link
Collaborator

Great!! Will be good to get CI up & running. Should we add that as part of this PR?

@keewis
Copy link
Collaborator Author

keewis commented Dec 5, 2019

do we agree on dropping -n and adding -W --keep-going to the CI? If so, I think I can do that in this PR.

@dcherian
Copy link
Contributor

dcherian commented Dec 5, 2019

do we agree on dropping -n and adding -W --keep-going to the CI?

I think this is OK. If it gets too annoying, we can revert

I fixed this by removing the whole section

I think this is OK too. The attributes seem to get added to the html documentation automatically. The list you removed is formatted kind of badly at the beginning of the docstring. see the end of https://xarray.pydata.org/en/stable/generated/xarray.DataArray.html

@keewis
Copy link
Collaborator Author

keewis commented Dec 5, 2019

I'll update the CI, then.

We could also have CI run doctest so we know which examples need updates, but we'd first need fix all outdated examples.

@keewis
Copy link
Collaborator Author

keewis commented Dec 5, 2019

now CI should fail on new warnings (no nit-picks, so no complaints about broken links).

I will open a new PR later to silence the nitpicky warnings.

@dcherian dcherian changed the title WIP: Silence sphinx warnings: Round 2 Silence sphinx warnings: Round 2 Dec 5, 2019
@max-sixty
Copy link
Collaborator

Looks great!! Really good that we can enforce the warnings from here

(I'm on vacation so forgive the lack of engagement)

@dcherian dcherian merged commit 4c51aa2 into pydata:master Dec 6, 2019
@dcherian
Copy link
Contributor

dcherian commented Dec 6, 2019

Thanks @keewis

@keewis keewis deleted the silence-sphinx-warnings-round-2 branch December 6, 2019 15:38
dcherian added a commit to dcherian/xarray that referenced this pull request Dec 7, 2019
* upstream/master:
  Fix map_blocks HLG layering (pydata#3598)
  Silence sphinx warnings: Round 2 (pydata#3592)
  2x~5x speed up for isel() in most cases (pydata#3533)
  remove xarray again (pydata#3591)
  fix plotting with transposed nondim coords. (pydata#3441)
  make coarsen reductions consistent with reductions on other classes (pydata#3500)
  Resolve the version issues on RTD (pydata#3589)
  Add bottleneck & rasterio git tip to upstream-dev CI (pydata#3585)
dcherian added a commit to dcherian/xarray that referenced this pull request Dec 30, 2019
…equiv

* 'master' of github.com:pydata/xarray: (28 commits)
  Add nanmedian for dask arrays (pydata#3604)
  added pyinterp to related projects (pydata#3655)
  Allow incomplete hypercubes in combine_by_coords (pydata#3649)
  concat keeps attrs from first variable. (pydata#3637)
  Extend DatetimeAccessor properties and support `.dt` accessor for Timedelta (pydata#3612)
  update readthedocs.yml (pydata#3639)
  silence sphinx warnings round 3 (pydata#3602)
  Fix/quantile wrong errmsg (pydata#3635)
  Provide shape info in shape mismatch error. (pydata#3619)
  Minor doc fixes (pydata#3615)
  Respect user-specified coordinates attribute. (pydata#3487)
  Add Facetgrid.row_labels & Facetgrid.col_labels (pydata#3597)
  Fix pint integration tests (pydata#3600)
  Minor fix to combine_by_coords to allow for the combination of CFTimeIndexes separated by large time intervals (pydata#3543)
  Fix map_blocks HLG layering (pydata#3598)
  Silence sphinx warnings: Round 2 (pydata#3592)
  2x~5x speed up for isel() in most cases (pydata#3533)
  remove xarray again (pydata#3591)
  fix plotting with transposed nondim coords. (pydata#3441)
  make coarsen reductions consistent with reductions on other classes (pydata#3500)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants