-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
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: skip
Gets reformatted to
if True:
x = 0 # fmt: skip
def foo(
self, lorem, ipsum, dolor, sit, amet, consectetur, adipiscing, elit, sed, do
): ... # fmt: skip
Which 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.
Avasam, Finkregh, zweissman, davidhwang-anthropic, mxmlnkn and 4 more
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