-
Notifications
You must be signed in to change notification settings - Fork 23
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
Inconsistent sorting when running isort in terminal vs using vscode-isort #346
Comments
isort {file-name}
and vscode isort
@amirkarimi Check if you have a configuration file like setup.cfg where the order is being set. Also, this is a issue on We recommend using |
If you do install |
Thanks @karthiknadig.
The only config is in
Thanks will give it a try though we use I'm closing this issue since seems like nothing else can be done by the extension. |
@amirkarimi Ruff is a multi-tool, it implements |
Consider this file which is sorted using
isort --profile black {file-name}
in the terminal:And this is the same file after running vscode
Organize Import
command.Diff:
isort
log in vscode:My theory is that
isort
behaves differently when the file content is piped into it vs provided as a file.VS Code Config
Version
OS: Ubuntu 22.04.3
Python: 3.11
isort: 5.12.0
VSCode:
Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
Date: 2023-10-10T23:45:31.402Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Linux x64 6.2.0-36-generic snap
The text was updated successfully, but these errors were encountered: