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

Make RSE102 autofixable #2591

Closed
LefterisJP opened this issue Feb 5, 2023 · 0 comments · Fixed by #2596
Closed

Make RSE102 autofixable #2591

LefterisJP opened this issue Feb 5, 2023 · 0 comments · Fixed by #2596
Assignees
Labels
fixes Related to suggested fixes for violations

Comments

@LefterisJP
Copy link

With ruff 0.0.241 I checked the RSE102 rule.

It's RSE102 Unnecessary parentheses on raised exception. So it should be really easy to just autofix.

raise NoArgsException() -> raise NoArgsException

@charliermarsh charliermarsh added the fixes Related to suggested fixes for violations label Feb 5, 2023
@charliermarsh charliermarsh self-assigned this Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixes Related to suggested fixes for violations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants