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

long strings are not broken into small chunks #515

Closed
098799 opened this issue Sep 17, 2018 · 1 comment
Closed

long strings are not broken into small chunks #515

098799 opened this issue Sep 17, 2018 · 1 comment

Comments

@098799
Copy link

098799 commented Sep 17, 2018

Howdy! Sorry you're having trouble. To expedite your experience,
provide some basics for me:

Operating system:
Python version: 3.6.5
Black version: 18.6b4
Does also happen on master: yes

To answer the last question, you have two options:

  1. Use the online formatter at https://black.now.sh/?version=master, which will use the latest master branch.
  2. Or run black on your machine:
    • create a new virtualenv (make sure it's the same Python version);
    • clone this repository;
    • run pip install -e .;
    • make sure it's sane by running python setup.py test; and
    • run black like you did last time.

Long strings are not broken into small chunks, therefore violating the 88 character in a line rule (or even 120 if the string is long enough). I'd expect a utility as this one to be aware of line limits and create a following type of break

("somestringthatisverylongsomestringthatisverylongsomestringthatisverylong"
"yes it's really really long yes it's really really long yes it's really really long")
@zsol
Copy link
Collaborator

zsol commented Sep 17, 2018

You're right, black doesn't do this yet. It's probably going to do it in the future, #182 tracks this

@zsol zsol closed this as completed Sep 17, 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