This got broken up:
'item': {
'very long string that would exceed line limit': 5, # noqa
}
to
'item': {
'very long string that would exceed line limit':
5, # noqa
}
which then caused the line with the key to exceed the line limit.
I'm not sure whether to make this an option or to hardcode it into the formatter. It might be best as an option. Perhaps along the lines of DISABLE_FORMATTING_COMMENTS and that can be set to a list of comments which, if present, will disable formatting on a line. Thoughts?
Shouldn't you be commenting # yapf: disable instead?
Most helpful comment
I'm not sure whether to make this an option or to hardcode it into the formatter. It might be best as an option. Perhaps along the lines of
DISABLE_FORMATTING_COMMENTSand that can be set to a list of comments which, if present, will disable formatting on a line. Thoughts?