Skip to content

black produces long lines for top-level code #34

Description

@svisser

Operating system: Mac OS X 10.12.5
Python version: 3.6.1
Black version: 18.3a2
Does also happen on master: Yes

black produces long lines for top-level code that isn't in a function. For example, the following:

session = get_session()
result = session.query(models.Customer.id).filter(
    models.Customer.account_id == account_id,
    models.Customer.email == email_address,
).order_by(
    models.Customer.id.asc(),
).all()

becomes:

session = get_session()
result = session.query(models.Customer.id).filter(models.Customer.account_id == account_id, models.Customer.email == email_address).order_by(models.Customer.id.asc(),).all()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions