Skip to content

Commit 6f4bbd4

Browse files
committed
Merge branch 'develop' of https://github.com/klen/python-mode into develop
2 parents 9fbaf58 + c27e9c5 commit 6f4bbd4

File tree

7 files changed

+25
-21
lines changed

7 files changed

+25
-21
lines changed

AUTHORS

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Contributors:
1616
* Daniel Hahler (http://github.com/blueyed)
1717
* David Vogt (http://github.com/winged);
1818
* Denis Kasak (http://github.com/dkasak);
19-
* Dimitrios Semitsoglou-Tsiapos (https://github.com/dset0x)
19+
* Dimitrios Semitsoglou-Tsiapos (https://github.com/dset0x);
2020
* Dirk Wallenstein (http://github.com/dirkwallenstein);
2121
* Florent Xicluna (http://github.com/florentx);
2222
* Fredrik Henrysson (http://github.com/fhenrysson);
@@ -26,29 +26,30 @@ Contributors:
2626
* Jay Rainey (https://github.com/jawrainey)
2727
* Jonathan McCall (http://github.com/Jonnymcc);
2828
* Kevin Deldycke (http://github.com/kdeldycke);
29-
* Kurtis Rader (https://github.com/krader1961)
29+
* Kurtis Rader (https://github.com/krader1961);
3030
* Lowe Thiderman (http://github.com/thiderman);
3131
* Martin Brochhaus (http://github.com/mbrochh);
3232
* Matthew Moses (http://github.com/mlmoses);
33-
* Mel Boyce (http://github.com/syngin)
33+
* Mel Boyce (http://github.com/syngin);
3434
* Mohammed (http://github.com/mbadran);
3535
* Naoya Inada (http://github.com/naoina);
36-
* Nate Zhang (https://github.com/natezhang93)
37-
* Paweł Korzeniewski (https://github.com/korzeniewskipl)
36+
* Nate Zhang (https://github.com/natezhang93);
37+
* Paweł Korzeniewski (https://github.com/korzeniewskipl);
3838
* Pedro Algarvio (http://github.com/s0undt3ch);
3939
* Phillip Cloud (http://github.com/cpcloud);
4040
* Piet Delport (http://github.com/pjdelport);
4141
* Robert David Grant (http://github.com/bgrant);
42-
* Robin Schneider (https://github.com/ypid)
43-
* Ronald Andreu Kaiser (http://github.com/cathoderay);
44-
* Samir Benmendil (https://github.com/Ram-Z)
42+
* Robin Schneider (https://github.com/ypid);
43+
* Ronald Andreu Kaiser (http://github.com/cathoderay);;
44+
* Samir Benmendil (https://github.com/Ram-Z);
4545
* Sorin Ionescu (sorin-ionescu);
4646
* Steve Losh (http://github.com/sjl);
47-
* Tommy Allen (https://github.com/tweekmonster)
48-
* Tyler Fenby (https://github.com/TFenby)
49-
* Wayne Ye (https://github.com/WayneYe)
50-
* bendavis78 (http://github.com/bendavis78)
51-
* fwuzju (http://github.com/fwuzju)
47+
* Tommy Allen (https://github.com/tweekmonster);
48+
* Tyler Fenby (https://github.com/TFenby);
49+
* Vincent Driessen (https://github.com/nvie);
50+
* Wayne Ye (https://github.com/WayneYe);
51+
* bendavis78 (http://github.com/bendavis78);
52+
* fwuzju (http://github.com/fwuzju);
5253
* lawrenceakka;
5354
* lee (loyalpartner);
5455
* nixon;

autoload/pymode.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ endfunction "}}}
109109

110110
fun! pymode#buffer_pre_write() "{{{
111111
let b:pymode_modified = &modified
112-
endfunction
112+
endfunction "}}}
113113

114114
fun! pymode#buffer_post_write() "{{{
115115
if g:pymode_rope
116-
if b:pymode_modified && g:pymode_rope_regenerate_on_write
116+
if g:pymode_rope_regenerate_on_write && b:pymode_modified
117117
call pymode#debug('regenerate')
118118
call pymode#rope#regenerate()
119119
endif

autoload/pymode/indent.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function! s:SearchParensPair() " {{{
110110
" Skip strings and comments and don't look too far
111111
let skip = "line('.') < " . (line - 50) . " ? dummy :" .
112112
\ 'synIDattr(synID(line("."), col("."), 0), "name") =~? ' .
113-
\ '"string\\|comment"'
113+
\ '"string\\|comment\\|doctest"'
114114

115115
" Search for parentheses
116116
call cursor(line, col)

pymode/libs/logilab/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

pymode/libs/pylama/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:license: BSD, see LICENSE for more details.
66
"""
77

8-
__version__ = "7.0.3"
8+
__version__ = "7.0.4"
99
__project__ = "pylama"
1010
__author__ = "Kirill Klenov <[email protected]>"
1111
__license__ = "GNU LGPL"

pymode/libs/pylama/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ def run(path='', code=None, rootdir=CURDIR, options=None):
2121
"""
2222
errors = []
2323
fileconfig = dict()
24-
lname = 'undefined'
25-
params = dict()
2624
linters = LINTERS
2725
linters_params = dict()
26+
lname = 'undefined'
27+
params = dict()
28+
path = op.relpath(path, rootdir)
2829

2930
if options:
3031
linters = options.linters
@@ -35,7 +36,6 @@ def run(path='', code=None, rootdir=CURDIR, options=None):
3536

3637
try:
3738
with CodeContext(code, path) as ctx:
38-
path = op.relpath(path, rootdir)
3939
code = ctx.code
4040
params = prepare_params(parse_modeline(code), fileconfig, options)
4141
LOGGER.debug('Checking params: %s', params)
@@ -71,7 +71,7 @@ def run(path='', code=None, rootdir=CURDIR, options=None):
7171
Error(linter=lname, lnum=e.lineno, col=e.offset, text=e.args[0],
7272
filename=path))
7373

74-
except Exception as e:
74+
except Exception as e: # noqa
7575
import traceback
7676
LOGGER.info(traceback.format_exc())
7777

pymode/lint.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ def __sort(e):
7373

7474
for e in errors:
7575
e._info['bufnr'] = env.curbuf.number
76+
if e._info['col'] is None:
77+
e._info['col'] = 1
7678

7779
env.run('g:PymodeLocList.current().extend', [e._info for e in errors])
7880

0 commit comments

Comments
 (0)