-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Feature request: Ship isort 5 #12932
Comments
@bersbersbers |
I've been using isort 5 since it's release date and had no issues at all. In fact, it's been a major improvement in all respects! Really looking forward to it shipping with the Python extension! |
Unexpected changes with upgrading isort:
Changes we'll have to make:
|
Yup, that's correct regarding the workaround. If |
Next release will have the new isort |
Apologies if this isn't the right place to raise this, but as I understand it, isort 5 drops support for Python 3.5 (at least being run by Python 3.5, I don't know if it can still operate on Python 3.5 sources). Does shipping isort 5 mean that the Python extension is now also dropping support for Python 3.5 generally in the next release? |
isort is very lenient about the source target since it doesn't have to parse the complete Python source code, just import statements, a subset of code that syntactically changes much less often. While it now needs Python 3.6+ to run, it can still be run against code that targets Python 2.6+ officially. Unofficially, it works just fine even against most code snippets targeting Python 1.6.1. |
@PeterJCLaw We have clarified it further in #13459 for you @timothycrosley Thanks, but the point is that users can't select python interpreter less than 3.6 and run sorting now, right? So it may reflect on us dropping support for Python 2 and Python less than 3.6 Can users unofficially use interpreter less than Python3.6 to run isort? |
@karrtikr no they cannot. I was only answering the secondary question of if it's possible to run isort to sort imports within source code that targets an older (or different) Python version than isort itself is running on. |
I was trying out
today, which promises better compatibility between
isort
andblack
. However, it seems that the extension ships with an older version ofisort
that does not support these flags.Even worse, adding these flags leads to endless "Saving
xyz.py
: Applying code action 'Sort imports'."Shipping
isort>=5
should solve this.The text was updated successfully, but these errors were encountered: