-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingformatterRelated to the formatterRelated to the formattersuppressionRelated to supression of violations e.g. noqaRelated to supression of violations e.g. noqa
Description
if True: x = 0 # fmt: skip
def foo(self, lorem, ipsum, dolor, sit, amet, consectetur, adipiscing, elit, sed, do): ... # fmt: skipGets reformatted to
if True:
x = 0 # fmt: skip
def foo(
self, lorem, ipsum, dolor, sit, amet, consectetur, adipiscing, elit, sed, do
): ... # fmt: skipWhich is because fmt: skip only applies to the preceding statement. However, it would be useful to apply the fmt: skip to the whole compound statement in this context. For instance, when formatting @overload decorated functions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingformatterRelated to the formatterRelated to the formattersuppressionRelated to supression of violations e.g. noqaRelated to supression of violations e.g. noqa