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

DOC, BUILD: fail the devdoc build if there are warnings #13170

Merged
merged 1 commit into from
Mar 21, 2019

Conversation

mattip
Copy link
Member

@mattip mattip commented Mar 21, 2019

We can turn on -WT --keep-going to fail the documentation build if there are any warnings. This might add to the burden of merging a PR since sometimes new warnings are hard to track down, but it would be better to handle them at the "source".

The next step is to turn on -n which currently generates warnings on hundreds of bad references. xref #13114

.. code-block:: C
:linenos:
:emphasize-lines: 3, 13, 29, 31
template source example::
Copy link
Member Author

Choose a reason for hiding this comment

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

C formatting does not like the templating syntax so I had to turn it off.

--------------------------------------------------------------------------
Previously functions in this module would accept ``float`` values provided they
were integral (``1.0``, ``2.0``, etc). For consistency with the rest of numpy,
doing so is now deprecated, and in future will raise a ``TypeError``.
Copy link
Member Author

Choose a reason for hiding this comment

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

Sphinx does not like putting an s right after double-backticks

@mattip
Copy link
Member Author

mattip commented Mar 21, 2019

Circle-ci build agrees there are no warnings

@rgommers rgommers merged commit 0eda21b into numpy:master Mar 21, 2019
@rgommers
Copy link
Member

Awesome, thanks @mattip

@rgommers rgommers added this to the 1.17.0 release milestone Mar 21, 2019
@mattip mattip deleted the doc-warnings-to-error branch June 8, 2020 06:58
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.

2 participants