-
Notifications
You must be signed in to change notification settings - Fork 1.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
Fun with imports :) #8408
Comments
Thanks for the issue!
|
Can you expand on how is |
For (1), do you wish to just disable the fix and allow the editor to highlight unused imports? If so, you can use the For additional context, the organize imports action isn't responsible for removing unused imports. It's the I hope this helps :) |
Going to close for now, but happy to answer any follow-up questions. |
@dhruvmanila sorry I missed your reply I used |
By incorrectly, do you mean that the outer and inner quotes were the same? The linked issue in my comment should solve this although how do we go about implementing it isn't final yet. |
Hey there,
Thanks for updating Ruff to support the python-black formatter!
I'm using this on Sublime Text 4 via LSP-ruff, and these are my settings:
There are a few quirks that I just wanted to point out:
When writing f-strings, this case is not being caught by Ruff:
my_string = f"Hello {data["name"]}"
previously
python-black
would catch the fact that we are using"
in both the string declaration and thedata
dictionary. Ruff is not catching these cases, which leads to run-time errors.Thanks for releasing Ruff, looking fowrard to more features :)
The text was updated successfully, but these errors were encountered: