black expands brackets into multiple lines, where this:
raise ValidationError({
NON_FIELD_ERRORS: [_("Don't do that!")],
})
raise ValidationError(
{
NON_FIELD_ERRORS: [_("Don't do that!")],
}
)
The coalesced bracket version is much to be preferred in my opinion. It would be great to have a configuration option to coalesce rather than expand brackets.
black
expands brackets into multiple lines, where this:The coalesced bracket version is much to be preferred in my opinion. It would be great to have a configuration option to coalesce rather than expand brackets.