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

Add a CI job that errors on warnings #120

Open
bhazelton opened this issue Sep 8, 2023 · 0 comments
Open

Add a CI job that errors on warnings #120

bhazelton opened this issue Sep 8, 2023 · 0 comments

Comments

@bhazelton
Copy link
Collaborator

This would help make it obvious when new deprecation warnings start happening, which will allow you to adapt code before it breaks.

You can make pytest error on all warnings with -W error or just on deprecation warnings with -W "error::DeprecationWarning". We have a job like this on all RASG repos and it's super helpful. We don't require that it passes to merge a PR but we usually notice and fix the problem as soon as the job starts erroring.

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

No branches or pull requests

1 participant