-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Autofix ISC001 (single-line-implicit-string-concatenation) #4829
Labels
fixes
Related to suggested fixes for violations
Comments
Totally agree, autofix could make it easier to fix this kind of code |
Trying to write autofixer by myself |
tkukushkin
added a commit
to tkukushkin/ruff
that referenced
this issue
Jun 4, 2023
tkukushkin
added a commit
to tkukushkin/ruff
that referenced
this issue
Jun 4, 2023
Merged
charliermarsh
pushed a commit
that referenced
this issue
Jun 12, 2023
## Summary This PR adds autofixer for rule ISC001 in cases where both string literals are of the same kind and with same quotes (double / single). Fixes #4829 ## Test Plan I added testcases with different combinations of string literals.
konstin
pushed a commit
that referenced
this issue
Jun 13, 2023
## Summary This PR adds autofixer for rule ISC001 in cases where both string literals are of the same kind and with same quotes (double / single). Fixes #4829 ## Test Plan I added testcases with different combinations of string literals.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ISC001 could have an autofixer. It can be difficult to combine strings of different kinds, but it shouldn't be difficult to combine strings of the same kind, so, IMHO, it would be ok to fix only such cases.
The text was updated successfully, but these errors were encountered: