Sort Imports command on VSCode not following PEP8 strictly #1731
Labels
question
Further information is requested
repo_needed
Can't currently reproduce, if reproduction steps are added we will resivit this issue.
Environment data
python.languageServer
setting: pylanceUpon opening an issue on VSCode and another on vscode-python, I am opening an issue here as a last resort because I was told that
vscode-python
extension usesisort
package for automatically sorting imports.Expected behaviour
When using the
Sort Import
features in a script that contain standard libraries imports, third-party imports and local imports, I expect the output to conform with the imports section on PEP8, there should be a blank line between:Therefore, the desired output would be:
Actual behaviour
Let's say I write the following imports when creating a Django app.
After I run the
Sort Imports
command, the output is:This means VSCode is sorting the third-party imports together with my local app imports alphabetically.
The text was updated successfully, but these errors were encountered: