8000 Don't expand brackets · Issue #84 · grantjenks/blue · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Don't expand brackets #84
Open
Open
@thinkwelltwd

Description

@thinkwelltwd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0