isort Questions
2
Solved
Trying ruff for the first time and I'm not being able to sort imports alphabetically, using default settings. According to docs ruff should be very similar to isort.
Here is a short example with un...
6
Solved
Mirror question to:
"How to config VSCode's Organize Imports order?" which refers to a .js project.
I want to configure how VSCode is invoking isort, so I can customize when calling Org...
Hagiographa asked 12/4, 2021 at 13:51
1
Solved
I often work in very small projects which do not have config file. How do I use ruff in place of isort to sort the imports? I know that the following command is roughly equivalent to black:
ruff fo...
6
Solved
I may have messed up some environmental path variables.
I was tinkering around VS Code while learning about Django and virtual environments, and changing the directory path of my Python install. Wh...
Unwilled asked 16/11, 2022 at 22:11
5
Solved
pre-commit suddenly started to fail installing the isort hook in our builds today with the following error
[INFO] Installing environment for https://github.com/pycqa/isort.
[INFO] Once installed th...
Vulgate asked 28/1, 2023 at 17:54
2
In the project codebase, there are multiple standalone packages in a folder titled plugins, and each package is in its own folder which has a setup.py file in it, and the project itself is a python...
2
[INFO] Installing environment for https://github.com/pycqa/isort.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred...
Bursarial asked 30/1, 2023 at 8:19
2
When using multiple tools that either check or format python files, is there a way to set line length once for all?
Currently I have:
.flake8 file:
max-line-length = 120
.isort.cfg file:
line-leng...
Stonyhearted asked 6/4, 2022 at 21:18
0
I want to store isort config in a repository (as I do with .editorconfig).
I went through several resources:
How to find which isort is vscode exactly using
VSCode: how to config 'Organize imp...
Barringer asked 5/11, 2022 at 18:45
1
I'm struggling with isort library which is sorting imports in my project.
To avoid circular dependencies, I need to import packages in following order:
from foo import *
from bar import *
fro...
Scorpion asked 12/4, 2022 at 21:4
2
Solved
https://code.visualstudio.com/docs/python/editing#_sort-imports
I have set
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
in vsc...
Achorn asked 26/6, 2020 at 23:48
1
Solved
I'm currently using isort --profile=black --line-length=79 as a linter in my project for python files.
This produces the Vertical Hanging Indent (mode 3 in isort's documentation kind of output:
fro...
2
Solved
I like to get inspiration from well designed python projects.
The last one that inspired me was the poetry repository.
I copied a lot from that, but the subject of this post are black and isort.
Bo...
Chanson asked 9/8, 2021 at 12:53
1
Solved
I am switching over to using Black for all my Python projects from now on. Till now I had been using autopep8 as my auto-formatter and isort to sort my imports. But while using Black I found out th...
Sensitivity asked 21/5, 2021 at 13:30
1
Solved
I'm working on a project with many different Django apps.
I want to use isort on this project but the imports from Django apps (from myapp1.mymodule import myfunction) are seen by isort as third-pa...
2
Solved
I have a series of tools running locally and on Jenkins to check and format my Python code:
autoflake
isort
black
I use pyproject.toml file to configure black, isort with .isort.cfg and autof...
Tripterous asked 28/5, 2020 at 16:20
0
What is the difference between Pycharm sort(I mean Optimize Imports) and isort? I can't find information about it
1
© 2022 - 2024 — McMap. All rights reserved.