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

Bug: Word wrapping works incorrectly with force_single_line=True #2267

Open
ramazanFarrahov opened this issue May 23, 2024 · 0 comments
Open

Comments

@ramazanFarrahov
Copy link

Word wrapping works incorrectly with force_single_line=True for from ... import *.

Steps to Reproduce

; .isort.cfg

[settings]
py_version = 39
profile = black
force_single_line = true
# example_file.py

from very.very.very.very.very.very.very.very.very.very.very.very.very.very.very.very.very.very.long.line import *

After running isort the file is broken:

# example_file.py

from very.very.very.very.very.very.very.very.very.very.very.very.very.very.very.very.(
    line import *.long.very.very,
)

Context (Environment)

  • python 3.9
  • isort 5.13.2

Possible fixes

I didn't find a way to disable word wrapping.

I've tried setting wrap_length and line_length to 999999 to avoid wrapping, but it starts conflicting with black (isort removes wrapping, then black puts it back).

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

1 participant