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

Ignore B028 if skip_file_prefixes is used #497

Open
kasium opened this issue Oct 31, 2024 · 0 comments
Open

Ignore B028 if skip_file_prefixes is used #497

kasium opened this issue Oct 31, 2024 · 0 comments

Comments

@kasium
Copy link
Contributor

kasium commented Oct 31, 2024

If a warnings.warn call contains no stacklevel but skip_file_prefixes is set, no issue should be raised, because if skip_file_prefixes is used, the author basically skips stack entries and also stacklevel has an implicit miniumum value of 2 automatically

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