isort

pre-commit fails to install isort 5.11.4 with error "RuntimeError: The Poetry configuration is invalid"

pre-commit fails to install isort 5.11.4 with error "RuntimeError: The Poetry configuration is invalid" Question: 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 this environment will be reused. [INFO] This may take a few minutes… An unexpected error …

Total answers: 5

VS Code: "The isort server crashed 5 times in the last 3 minutes…"

VS Code: "The isort server crashed 5 times in the last 3 minutes…" Question: 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. While figuring out how to point VS Code’s default Python …

Total answers: 5

VSCode: how to config 'Organize imports' for Python (isort)

VSCode: how to config 'Organize imports' for Python (isort) Question: 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 Organize imports in a .py file. In particular, VSCode has started removing a blank …

Total answers: 4