Skip to content

Error on warnings - #1008

Draft
penelopeysm wants to merge 2 commits into
mainfrom
py/warnerror
Draft

Error on warnings#1008
penelopeysm wants to merge 2 commits into
mainfrom
py/warnerror

Conversation

@penelopeysm

@penelopeysm penelopeysm commented May 14, 2026

Copy link
Copy Markdown
Member

Closes #1007

This actually took me a long time to figure out. Here are the facts:

I think there's only one reliable way to stop it from ruining CI, which is to compile the bytecode before running Pytest. The --compile-bytecode flag is easy to enforce in CI, but I think it's important to mention in the docs, given that this can be confusing (e.g. if someone does uv run pytest before compiling bytecode they will get an error),

I tried to suppress it with uv run python -Wignore::DeprecationWarning:pyro.ops.stats -m pytest ..., as suggested in the pytest issue above, but I couldn't get it to work :/

@penelopeysm
penelopeysm marked this pull request as draft May 14, 2026 19:55
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.

Promote warnings to errors in CI

1 participant