Disable pep8 check in syntastic for python files

守給你的承諾、 提交于 2019-12-03 02:14:13

If your are using flake8 as a python syntax checker you could do it like this (put it into your vimrc or ftplugin/python.vim file):

let g:syntastic_python_checkers=['flake8']
let g:syntastic_python_flake8_args='--ignore=E501,E225'

You need to silence each error class explicitly (and cannot disable pep8 checking as a whole). See the flake8 documentation and pycodestyle documentation (used to be pep8) for all error and warning codes.

Adding to Christians answer. You can also add specific checker args:

let g:syntastic_python_flake8_args = "--ignore=E501 --max-complexity 10"
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!