I was trying out
"python.sortImports.args": [
"--profile",
"black",
],
today, which promises better compatibility between isort and black. However, it seems that the extension ships with an older version of isort that does not support these flags.
user@host:~/.vscode-server/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/isort> grep version __init__.py
__version__ = "4.3.21"
Even worse, adding these flags leads to endless "Saving xyz.py: Applying code action 'Sort imports'."
Shipping isort>=5 should solve this.
I was trying out
today, which promises better compatibility between
isortandblack. However, it seems that the extension ships with an older version ofisortthat does not support these flags.Even worse, adding these flags leads to endless "Saving
xyz.py: Applying code action 'Sort imports'."Shipping
isort>=5should solve this.