-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Is there a way to raise PT011
for any exception types?
#6473
Labels
Comments
Ideas
|
We could probably support globbing... We already use globbing for some settings, like https://beta.ruff.rs/docs/settings/#isort-extra-standard-library. |
Globbing sounds good :) |
Can I implement this? |
That'd be great, thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Discussed in #6382
Originally posted by harupy August 7, 2023
I want to disallow calling
pytest.raises
withoutmatch
regardless of the error type. Is there a way to achieve that? We could use raises-require-match-for and specify all error types in a codebase there:Is there an easier way?
The text was updated successfully, but these errors were encountered: