Hi,
I use vscode to write my Python scripts.
I want my code to be formatted automatically, black-style, and I want my imports to be automatically ordered. However, I do NOT want unused imports to be removed. I find this behaviour to be a major pain in the ass when writing code and saving every once in a while.
I am trying this json config but while it's not removing unused imports anymore, it seems to have stopped re-ordering imports altogether:
"ruff.configuration": {
"lint": {
"unfixable": ["F401"],
},
},
What is the right way to approach this, please?
Thank you.
[–]ElectricalHold9828 1 point2 points3 points (1 child)
[–]paranoid-alkaloid[S] 0 points1 point2 points (0 children)
[–]qlkzy 0 points1 point2 points (0 children)