Pylint on Vscode

Asked

Viewed 22 times

2

I’m starting to use the VSCode to work with Python, and would like to set up the Pylint to highlight|warnings errors while typing (such as PyCharm makes), by default lints are only 'executed' in VSCode when I save the file... Is there any way to change this behavior? Can you configure the Pylint to behave as in PyCharm and check the code while I’m still writing it?

My Vscode (Settings.json) settings for Python are as follows::

    "python.pythonPath": "venv\\Scripts\\python.exe", 
    "python.autoComplete.addBrackets": true,
    "python.analysis.completeFunctionParens": true,
    "python.linting.pylintEnabled": true,
    "python.linting.pylintArgs": [
        "--load-plugins=pylint_django",
        "--disable=missing-docstring"
    ],

Thank you

1 answer

1


Dude, running while you’re programming I don’t think it’s possible, a solution to this would be for you to decrease the time between the automatic VSCode, so he saves himself more often and already applies the PyLint.

Access your own preferences VSCode:

inserir a descrição da imagem aqui

Acessa Text Editor, Files and on the option Auto-save delay sets the time you want between automatic saves. The value default is 1000ms.

inserir a descrição da imagem aqui

  • Opa is this is a possibility! I come from JS and always left this option disabled so as not to generate error or problems like infinite loop in Vue/React etc... I thought with the Django could have the same effect but I’ve seen that it doesn’t. Thank you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.