Comments (4)
@amirkarimi Ruff is a multi-tool, it implements isort
, flake8
, and black
formatter in rust. It is incredibly fast. So you can replace two tools with one. Ruff actually implements several other linter rules too (including but not limited to pylint, pyflakes, bandit, pycodestyle, pydocstyle, etc).
from 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 isort
library itself.
We recommend using ruff
(see Ruff extension) for import sorting, as isort
has not published a fix for the issues with running using stdin. We need to use stdin to handle cases where imports are organized on save.
from vscode-isort.
If you do install Ruff
, be sure to remove isort
extension, and add this to your settings ("source.organizeImports.ruff": true
) in place of "source.organizeImports": true
.
from vscode-isort.
Thanks @karthiknadig.
Check if you have a configuration file like setup.cfg where the order is being set.
The only config is in pyproject.toml
which is not changing the :
[tool.isort]
profile = "black"
multi_line_output = 3
We recommend using
ruff
Thanks will give it a try though we use isort
and flake
in our pre-commit stuff, I'd rather not change those.
I'm closing this issue since seems like nothing else can be done by the extension.
from vscode-isort.
Related Issues (20)
- Improve setting description for default interpreter setting HOT 7
- Add Python 3.12-dev to tests actions HOT 3
- Remove Python 3.7 from tests actions HOT 1
- Update library packages for the extension HOT 1
- `isort` when run via the VSCode extension is inconsistent with the result of running `isort` separately HOT 2
- Docs: Using bundled isort or not? HOT 5
- Add the "Sort Imports" back to the context menu options as "Organize Imports" HOT 12
- isort crashes after VSCode update HOT 7
- Preview Tag on the offical store HOT 1
- Saving empty .py file in multi root workspace crashes isort. HOT 1
- Isort cannot handle line magic in jupyter notebook HOT 6
- Couldn't start client isort, asyncio failing HOT 1
- `fromEnvironment` should also pick up the python path from jupyter HOT 1
- bug: lines being deleted when setting organizeImports to explicit HOT 2
- Python organize imports explicit is deleting one extra line that it should when removing blank lines after an import statement. HOT 2
- Import with python HOT 7
- Isort server crashed HOT 6
- [WinError 64] The specified network name is no longer available HOT 9
- Undesired behavior on files with `# isort: skip_file` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-isort.