Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

black doesn't respect the line length in a list with comments #84

Closed
Lukas0907 opened this issue Mar 28, 2018 · 1 comment
Closed

black doesn't respect the line length in a list with comments #84

Lukas0907 opened this issue Mar 28, 2018 · 1 comment

Comments

@Lukas0907
Copy link

Lukas0907 commented Mar 28, 2018

Hi,

I've stumbled upon the following problem. Trying to reformat the code:

test = [
    (None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None)
    # et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea t
]

Produces:

test_black.py already well formatted, good job.

Which is clearly not the case since the lines are too long. I think it has something to do with the comment in the list.

Operating system: Ubuntu 16.04
Python version: 3.6.1
Black version: master
Does also happen on master: yes

@carljm
Copy link
Collaborator

carljm commented Mar 28, 2018

Hi, thanks for the report! This is a duplicate of issue #22.

@carljm carljm closed this as completed Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants