Skip to content

Commit 84074b1

Browse files
committed
Version 0.5.5
1 parent b8c9eec commit 84074b1

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

Changelog.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
Changelog
22
=========
33

4-
## 2012-01-17 0.5.4
4+
## 2012-01-17 0.5.5
55
-------------------
66
* Add a sign for info messages from pylint.
77
(c) Fredrik Henrysson
88
* Change motion keys: vic - viC, dam - daM and etc
9+
* Add 'g:pymode_lint_onfly' option
910

1011
## 2012-01-09 0.5.3
1112
-------------------

README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ Default values: ::
136136
" values (pylint, pyflakes)
137137
let g:pymode_lint_checker = "pylint"
138138

139+
" Run linter on the fly
140+
let g:pymode_lint_onfly = 0
141+
139142
" Pylint configuration file
140143
" If file not found use 'pylintrc' from python-mode plugin directory
141144
let g:pymode_lint_config = "$HOME/.pylintrc"
@@ -411,7 +414,7 @@ License
411414
Licensed under a `GNU lesser general public license`_.
412415

413416
If you like this plugin, you can send me postcard :)
414-
My address is here: Russia, 143400, Krasnogorsk, Shkolnaya 1-19
417+
My address is here: Russia, 143401, Krasnogorsk, Shkolnaya 1 kv. 19
415418
Thanks for support!
416419

417420

doc/pymode.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
(__) (__) (__) (_) (_)(_____)(_)\_) (_/\/\_)(_____)(____/(____) ~
77

88

9-
Version: 0.5.4
9+
Version: 0.5.5
1010

1111
==============================================================================
1212
CONTENTS *Python-mode-contents*
@@ -57,6 +57,8 @@ PythonMode. These options should be set in your vimrc.
5757

5858
|'pymode_lint_checker'| Switch code checkers (pylint, pyflakes)
5959

60+
|'pymode_lint_onfly'| Run linter on the fly
61+
6062
|'pymode_lint_config'| Filepath to pylinc configuration
6163

6264
|'pymode_lint_write'| Check code every save
@@ -153,6 +155,13 @@ Default: "pylint".
153155

154156
This option set code checker.
155157

158+
------------------------------------------------------------------------------
159+
*'pymode_lint_onfly'*
160+
Values: 0 or 1
161+
Default: 0
162+
163+
This option enabled "on the fly" code checking
164+
156165
------------------------------------------------------------------------------
157166
*'pymode_lint_config'*
158167
Values: 'Path to pylint configuration file'
@@ -427,7 +436,7 @@ The Python-mode is released under the GNU lesser general public license.
427436
See: http://www.gnu.org/copyleft/lesser.html
428437

429438
If you like this plugin, you can send me postcard :)
430-
My address is here: Russia, 143400, Krasnogorsk, Shkolnaya 1-19
439+
My address is here: Russia, 143401, Krasnogorsk, Shkolnaya 1 kv. 19
431440
Thanks for support!
432441

433442

ftplugin/python/pymode.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ if g:pymode_lint
8989
au BufWritePost <buffer> PyLint
9090
endif
9191

92+
if g:pymode_lint_onfly
93+
au InsertLeave <buffer> PyLint
94+
endif
95+
9296
endif
9397

9498
" }}}

plugin/pymode.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let g:pymode_version = "0.5.4"
1+
let g:pymode_version = "0.5.5"
22

33
com! PymodeVersion echomsg "Current python-mode version: " . g:pymode_version
44

@@ -38,6 +38,9 @@ if !pymode#Default("g:pymode_lint", 1) || g:pymode_lint
3838
" OPTION: g:pymode_lint_write -- bool. Check code every save.
3939
call pymode#Default("g:pymode_lint_write", 1)
4040

41+
" OPTION: g:pymode_lint_onfly -- bool. Check code every save.
42+
call pymode#Default("g:pymode_lint_onfly", 0)
43+
4144
" OPTION: g:pymode_lint_checker -- str. Use pylint of pyflakes for check.
4245
call pymode#Default("g:pymode_lint_checker", "pylint")
4346

0 commit comments

Comments
 (0)