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

Treat warnings as errors in pytests #168

Merged
merged 4 commits into from
Jun 3, 2019
Merged

Conversation

jacobperron
Copy link
Contributor

This has the benefit of making deprecation warnings visible, which are not by default.

@jacobperron jacobperron added the in progress Actively being worked on (Kanban column) label May 13, 2019
@dirk-thomas
Copy link
Contributor

CI builds with this would be good.

@jacobperron
Copy link
Contributor Author

As mentioned in a separate discussion, it might be better to make the default value OFF so it doesn't disrupt current users. If we do this, then we should go through all our packages and turn the feature on explicitly to get this in our CI builds (unless I'm missing something). The downside is that it's easy to forget to turn on for new packages. I don't feel strongly either way, so I can change the default if someone has a preference.

@jacobperron jacobperron added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels May 15, 2019
@dirk-thomas
Copy link
Contributor

Imo sticking to defaults makes more sense. And if the calling code wants to escalate warnings then they should opt-in to that (same as e.g. the compiler flag with the same name).

This has the benefit of making deprecation warnings visible, which are not by default.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron
Copy link
Contributor Author

Linux CI: Build Status

@jacobperron jacobperron merged commit 3c432f2 into master Jun 3, 2019
@delete-merged-branch delete-merged-branch bot deleted the jacob/pywarning_as_error branch June 3, 2019 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in review Waiting for review (Kanban column)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants