Skip to content

Commit

Permalink
Version 1.3: Added option support for --builtins and --max-complexity.
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie authored and vim-scripts committed Oct 21, 2012
1 parent 61d4057 commit 018d7ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ftplugin/python_flake8.vim
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ if !exists("*Flake8()")
endif

" read config
if exists("g:flake8_builtins")
let s:flake8_builtins_opt=" --builtins=".g:flake8_builtins
else
let s:flake8_builtins_opt=""
endif

if exists("g:flake8_ignore")
let s:flake8_ignores=" --ignore=".g:flake8_ignore
else
Expand All @@ -57,7 +63,7 @@ if !exists("*Flake8()")

" perform the grep itself
let &grepformat="%f:%l:%c: %m\,%f:%l: %m"
let &grepprg=s:flake8_cmd.s:flake8_ignores.s:flake8_max_line_length.s:flake8_max_complexity
let &grepprg=s:flake8_cmd.s:flake8_builtins_opt.s:flake8_ignores.s:flake8_max_line_length.s:flake8_max_complexity
silent! grep! %

" restore grep settings
Expand Down

0 comments on commit 018d7ed

Please sign in to comment.