-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
fixesRelated to suggested fixes for violationsRelated to suggested fixes for violationsneeds-decisionAwaiting a decision from a maintainerAwaiting a decision from a maintainer
Description
Given this snippet:
return "data:image/{};base64,{}".format(
ext[1:], data.decode() # Remove the leading dot.
)Ruff autofix produces this output:
return f"data:image/{ext[1:]};base64,{data.decode()}"Note that the autofixed code "swallows" the comment. See here for original context: WhyNotHugo/django-afip@2974184
This is reproducible with ruff 0.0.281. The relevant pyproject.toml is here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
fixesRelated to suggested fixes for violationsRelated to suggested fixes for violationsneeds-decisionAwaiting a decision from a maintainerAwaiting a decision from a maintainer