Skip to content

Commit 6b106e1

Browse files
committed
Fix pylint
1 parent 33915df commit 6b106e1

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.py[cod]
2+
.vimrc
23
*.sw?
34
*~
45
.DS_Store

autoload/pymode/lint.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ fun! pymode#lint#Check() "{{{
1414

1515
let g:pymode_lint_buffer = bufnr('%')
1616

17+
py from pymode import lint
1718
py lint.check_file()
1819

1920
endfunction " }}}
@@ -99,7 +100,9 @@ fun! pymode#lint#Auto() "{{{
99100
return 0
100101
endtry
101102
endif
103+
py from pymode import auto
102104
py auto.fix_current_file()
103105
cclose
104106
edit
107+
call pymode#WideMessage("AutoPep8 done.")
105108
endfunction "}}}

ftplugin/python/init-pymode.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import sys, vim, os
5050
curpath = vim.eval("getcwd()")
5151
libpath = os.path.join(vim.eval("expand('<sfile>:p:h:h:h')"), 'pylibs')
5252

53-
sys.path = [os.path.dirname(libpath), libpath, curpath] + vim.eval("g:pymode_paths") + sys.path
53+
sys.path = [libpath, curpath] + vim.eval("g:pymode_paths") + sys.path
5454
EOF
5555

5656
endif " }}}
@@ -130,7 +130,7 @@ if !pymode#Default("g:pymode_lint", 1) || g:pymode_lint
130130
let g:pymode_lint_config = expand("<sfile>:p:h:h") . "/pylint.ini"
131131
endif
132132

133-
py from pymode import lint, queue, auto
133+
py from pymode import queue
134134

135135
au VimLeavePre * py queue.stop_queue()
136136

pylibs/autopep8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
import difflib
4545
import tempfile
4646

47-
from .pylama import pep8
47+
from pylama import pep8
4848

4949

5050
try:

pylibs/pymode/auto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import vim
2-
from pylibs.autopep8 import fix_file
2+
from autopep8 import fix_file
33

44

55
class Options():

pylibs/ropevim.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import tempfile
55
import re
66

7-
from pylibs.ropemode import decorators
8-
from pylibs.ropemode import environment
9-
from pylibs.ropemode import interface
7+
from ropemode import decorators
8+
from ropemode import environment
9+
from ropemode import interface
1010

1111
import vim
1212

0 commit comments

Comments
 (0)