2011-11-16 16:37:03 +01:00
|
|
|
"============================================================================
|
|
|
|
"File: python.vim
|
|
|
|
"Description: Syntax checking plugin for syntastic.vim
|
|
|
|
"
|
|
|
|
"Authors: Martin Grenfell <martin.grenfell@gmail.com>
|
|
|
|
" kstep <me@kstep.me>
|
2012-01-15 22:46:47 +05:30
|
|
|
" Parantapa Bhattacharya <parantapa@gmail.com>
|
2011-11-16 16:37:03 +01:00
|
|
|
"
|
2012-01-15 22:46:47 +05:30
|
|
|
"
|
|
|
|
" For forcing the use of flake8, pyflakes, or pylint set
|
2011-11-16 16:37:03 +01:00
|
|
|
"
|
|
|
|
" let g:syntastic_python_checker = 'pyflakes'
|
2012-01-15 22:46:47 +05:30
|
|
|
"
|
|
|
|
" in your .vimrc. Default is flake8.
|
2012-02-20 10:20:48 +00:00
|
|
|
"============================================================================
|
2011-11-16 16:37:03 +01:00
|
|
|
|
2009-07-29 19:19:07 +12:00
|
|
|
if exists("loaded_python_syntax_checker")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let loaded_python_syntax_checker = 1
|
|
|
|
|
2012-02-13 08:58:04 +01:00
|
|
|
if !exists('g:syntastic_python_checker_args')
|
|
|
|
let g:syntastic_python_checker_args = ''
|
|
|
|
endif
|
2009-07-29 19:19:07 +12:00
|
|
|
|
2012-02-20 10:20:48 +00:00
|
|
|
let s:supported_checkers = ["flake8", "pyflakes", "pylint"]
|
2012-03-21 09:42:11 +00:00
|
|
|
call SyntasticLoadChecker(s:supported_checkers, 'python')
|