通过配置文件的形式来实现在VSCODE中检查代码
pip install pylint
pylint --generate-rcfile > /home/projects/python_project/.pylintrc
生成的配置文件, 位于/home/projects/python_project/.pylintrc,记录下来以备后用
{
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.linting.pylintArgs": ["--load-plugins", "/home/projects/python_project/.pylintrc"]
}
这样就配置完成.