You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was moving pypa/build to Ruff format in pypa/build#696, since it's a single quote package, and it was previously handed by Black + pre-commit-hook's double to single quotes option. But it turns out Ruff converts triple quoted strings to double quotes even if single quotes is selected via quote-style = "single":
deffoo():
''' Single quotes. ''''
return'''foo'''+'bar'
Gets turned into:
deffoo():
""" Single quotes. """return"""foo"""+'bar'
The text was updated successfully, but these errors were encountered:
@henryiii - We ended up changing the behavior (during the alpha) such that we always use double quotes for multiline strings. Also relevant is the discussion in here (#7525) around supporting a quote-style = "preserve".
I was moving pypa/build to Ruff format in pypa/build#696, since it's a single quote package, and it was previously handed by Black + pre-commit-hook's double to single quotes option. But it turns out Ruff converts triple quoted strings to double quotes even if single quotes is selected via
quote-style = "single"
:Gets turned into:
The text was updated successfully, but these errors were encountered: