-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiff-vim-flake8-fix-ignore.patch
More file actions
30 lines (26 loc) · 1.21 KB
/
diff-vim-flake8-fix-ignore.patch
File metadata and controls
30 lines (26 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/autoload/flake8.vim b/autoload/flake8.vim
index 06a1b6b..5a9f26a 100644
--- a/autoload/flake8.vim
+++ b/autoload/flake8.vim
@@ -32,7 +32,7 @@ function s:Warnings()
let l:show_website_url = 0
let l:msg = "has been deprecated in favour of flake8 config files"
- for setting_name in ['g:flake8_ignore', 'g:flake8_builtins', 'g:flake8_max_line_length', 'g:flake8_max_complexity']
+ for setting_name in ['g:flake8_builtins', 'g:flake8_max_line_length', 'g:flake8_max_complexity']
if exists(setting_name)
echohl WarningMsg | echom setting_name l:msg | echohl None
let l:show_website_url = 1
@@ -71,6 +71,7 @@ function! s:Setup() " {{{
" flake8 command
call s:DeclareOption('flake8_cmd', '', '"flake8"')
+ call s:DeclareOption('flake8_ignore', ' --ignore=', '')
" quickfix
call s:DeclareOption('flake8_quickfix_location', '', '"belowright"')
call s:DeclareOption('flake8_quickfix_height', '', 5)
@@ -137,7 +138,7 @@ function! s:Flake8() " {{{
" perform the grep itself
let &grepformat="%f:%l:%c: %m\,%f:%l: %m"
- let &grepprg=s:flake8_cmd
+ let &grepprg=s:flake8_cmd.s:flake8_ignore
silent! grep! "%"
" restore grep settings