One - One Code All

Blog Content

python格式化pep8,flake8,pylint

Python   2011-05-08 23:02:32

pip install  yapf

pip install flake8

pip install autopep8

pip install pylint


配置"settings.json",启用yapf:

{
   "python.pythonPath": "python3",
   "python.formatting.provider":"yapf",
   "python.linting.pylintEnabled":true,
   "python.linting.flake8Enabled":true,
   "php.validate.executablePath": "php",
   "editor.wordWrap": "on",
   "files.autoSave": "afterDelay",
}



上一篇:anaconda初步用法
下一篇:python中返回列表中的第二小的元素的下标

The minute you think of giving up, think of the reason why you held on so long.