Skip to content

Commit a8beefa

Browse files
committed
Failed to update variable
1 parent a13577d commit a8beefa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyls_mypy/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.1"
1+
__version__ = "0.2.2"

pyls_mypy/plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@ def pyls_lint(config, workspace, document, is_saved):
6161
settings = config.plugin_settings('pyls_mypy')
6262
live_mode = settings.get('live_mode', True)
6363
path = document.path
64-
loc=path.rfind("\\")
65-
while (loc)>-1:
64+
loc = path.rfind("\\")
65+
while loc > -1:
6666
p = path[:loc+1]+"mypy.ini"
6767
if os.path.isfile(p):
6868
break
6969
else:
7070
path = path[:loc]
71+
loc = path.rfind("\\")
7172
if is_saved:
7273
args = ['--incremental',
7374
'--show-column-numbers',

0 commit comments

Comments
 (0)