I had the same "problem" and for me the suggested "ruff.lint.args" setting did not work. It seems that it has to do with formatting, so I added the following to my VSCode settings and it did the trick:
"ruff.format.args": [
"--unfixable F401"
]
edit: typo