Selva
Selva

Reputation: 1151

How to show quick fix in VSCode when using python with flake8 and mypy?

I have a python project with flake8 and mypy activated using settings.json

"python.linting.mypyEnabled": true,
"python.linting.flake8Enabled": true,
"python.linting.enabled": true,

However I am not able to see quick fix

enter image description here

Upvotes: 3

Views: 3127

Answers (1)

MingJie-MSFT
MingJie-MSFT

Reputation: 9437

Thank @wjandrea for his comments and corrections. This function is provided by Pylance. You can install the Pylance extension and use pylint.

This does not affect the use of flake8 or mypy.

Adding the following codes to your settings.json:

"python.linting.pylintEnabled": true,

enter image description here

enter image description here

You can choose the selected package or all unused packages.

Upvotes: 2

Related Questions