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

Viewed 54

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

1 Answers

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.

Related