-
-
Notifications
You must be signed in to change notification settings - Fork 583
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
isort --profile black produces long lines #2281
Comments
How exactly did you set |
|
I can't reproduce your issue, with either the following Python snippet:
or the following bash snippet:
the output is always:
Is your |
Your bash snippet works for me, but if I remove the explicit printf "from nemo.polygons import (WILDCARD, cst_limit, offshore_wind_limit,\n pv_limit,
wind_limit)" | isort --profile=black - produces: from nemo.polygons import WILDCARD, cst_limit, offshore_wind_limit, pv_limit, wind_limit |
Ok, can you provide me everything I need to set my config exactly the same way? |
python3 -m venv myenv
. myenv/bin/activate
pip install isort
printf "from nemo.polygons import (WILDCARD, cst_limit, offshore_wind_limit,\n pv_limit,
wind_limit)" | isort --profile=black - |
Ok, so you're not actually setting The default
you can test this by adding 1 character
As you can see, everything is working as expected, your test input just happened to be in the Goldilock zone to mislead you 😂 Keep in mind that the
|
Many thanks for getting to the bottom of this. |
I have
line_length
set to 79.When formatting this code with
isort --profile black
:I get:
(which is 89 characters long)
The text was updated successfully, but these errors were encountered: