Skip to content

Commit f8cdd89

Browse files
committed
Respect to 'pymode_lint_ignore' when use command PymodeLintAuto
1 parent fbdb8ca commit f8cdd89

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

autoload/pymode/lint.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ fun! pymode#lint#auto() "{{{
44
if !pymode#save()
55
return 0
66
endif
7-
PymodePython pymode.auto()
7+
PymodePython from pymode import auto
8+
PymodePython auto()
89
cclose
910
edit
1011
call pymode#wide_message("AutoPep8 done.")

pymode/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ class Options(object):
1515
aggressive = 0
1616
line_range = None
1717
diff = False
18-
ignore = ''
18+
ignore = vim.eval('g:pymode_lint_ignore')
1919
in_place = True
2020
max_line_length = 79
2121
pep8_passes = 100
2222
recursive = False
23-
select = ''
23+
select = vim.eval('g:pymode_lint_select')
2424
verbose = 0
2525

2626
fix_file(vim.current.buffer.name, Options)

0 commit comments

Comments
 (0)