-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
acceptedReady for implementationReady for implementationformatterRelated to the formatterRelated to the formatter
Milestone
Description
Ruff version 0.0.289
Before
if (
"aaaaaaaaaaaaaaaaaaaa"
and "sdasdaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" # type: ignore
):
passAfter ruff format
if (
"aaaaaaaaaaaaaaaaaaaa" and "sdasdaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" # type: ignore
):
passThere's now an E501 violation, due to the length of the comment. I'm guessing this is a disparity between the formatter ignoring comments for line length calculations and E501 not.
I understand there's some disparity between the way black handles line length and ruff, but i'd expect the ruff formatter to be consistent with ruff's line length rules, which is not the case here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
acceptedReady for implementationReady for implementationformatterRelated to the formatterRelated to the formatter