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

Do not treat doc warnings as errors #1134

Merged
merged 1 commit into from
Jul 15, 2022
Merged

Do not treat doc warnings as errors #1134

merged 1 commit into from
Jul 15, 2022

Conversation

MattiSG
Copy link
Member

@MattiSG MattiSG commented Jul 7, 2022

This changeset stops documentation compilation warnings from being treated as errors.

An untreatable warning appeared in the codebase since an update to Sphinx (the engine building the doc): <unknown>:1: WARNING: py:obj reference target not found: openfisca_core.types.data_types.arrays.T. Warnings are currently treated as errors when building the doc, meaning that the doc test always fails. For example, this failing CI is now blocking a PR as trivial as #1132.

Applying this changeset implies that additional, legitimate warnings will not be made easily visible in CI. This is however the only way I found after a lot of investigation to solve this situation. See openfisca/openfisca-doc#264 (comment).

@MattiSG MattiSG requested a review from a team July 7, 2022 17:25
@coveralls
Copy link

Coverage Status

Coverage remained the same at 78.94% when pulling bf5efbb on doc-no-error into 7d4933a on master.

Copy link
Collaborator

@sandcha sandcha left a comment

Choose a reason for hiding this comment

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

Thx @MattiSG!

@MattiSG
Copy link
Member Author

MattiSG commented Jul 15, 2022

Thanks to you two!

@MattiSG MattiSG merged commit 1d76739 into master Jul 15, 2022
@MattiSG MattiSG deleted the doc-no-error branch July 15, 2022 13:36
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.

4 participants