Skip to content

chore: PP309: Filter warnings specified #9620

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

Conversation

DimitriPapadopoulos
Copy link
Contributor

Apply repo-review suggestion PP309:
filterwarnings must be set (probably to at least ["error"]). Python will hide important warnings otherwise, like deprecations.

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

Apply repo-review suggestion PP309:
	filterwarnings must be set (probably to at least ["error"]).
	Python will hide important warnings otherwise, like deprecations.
@@ -199,6 +199,7 @@ markers = [
]
log_cli_level = "INFO"
xfail_strict = true
filterwarnings = ["error"]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
filterwarnings = ["error"]
filterwarnings = [
"error",
"ignore::DeprecationWarning:httpretty.*:",
]

You will need something like this atleast due to httpretty.

@abn
Copy link
Member

abn commented Jan 17, 2025

Closing this for now, as this also causes some non-deterministic errors like when files are closed too slowly etc.

Thank you @DimitriPapadopoulos for your time and effort.

@abn abn closed this Jan 17, 2025
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants