enabling pylint_django plugin in vscode, pylint stop working

前端 未结 5 1589
走了就别回头了
走了就别回头了 2021-02-12 11:49

That\'s my user settings in vscode

{
  \"python.pythonPath\": \"/Users/cristiano/miniconda3/envs/django-rest-2/bin/python\",
  \"python.linting.pylintEnabled\":          


        
5条回答
  •  不思量自难忘°
    2021-02-12 12:19

    It now works on my Mac. This is my workspace's settings.json:

    {
    "python.linting.pylintEnabled": true,
    "python.linting.pycodestyleEnabled": false,
    "files.autoSave": "afterDelay",
    "editor.fontSize": 14,
    "editor.wordWrapColumn": 90,
    "editor.autoClosingQuotes": "beforeWhitespace",
    "python.pythonPath": "/Users/myname/anaconda3/envs/myproject/bin/python",
    "python.linting.pylintArgs": [
        "--disable=C0111", // missing docstring
        "--load-plugins=pylint_django",
     ],
    

    }

    I had to be careful to have installed pylint-django into the correct python environment. For me, this meant running this command in the terminal:

    $ /Users/myname/anaconda3/envs/myproject/bin/python -m install pip pylint pylint-django

提交回复
热议问题