Skip to content

Commit c70ca23

Browse files
committed
lint fixes
1 parent 0e7ec60 commit c70ca23

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pyls_mypy/plugin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
from pyls import hookimpl
44

55
line_pattern = r"([^:]+):(?:(\d+):)?(?:(\d+):)? (\w+): (.*)"
6-
LIVE_MODE = r"live_mode"
7-
DEFAULT_LIVE_MODE = True
6+
87

98
def parse_line(line, document=None):
109
'''
@@ -42,7 +41,7 @@ def parse_line(line, document=None):
4241

4342
@hookimpl
4443
def pyls_lint(config, document):
45-
live_mode = config.plugin_settings('pyls_mypy').get(LIVE_MODE, DEFAULT_LIVE_MODE)
44+
live_mode = config.plugin_settings('pyls_mypy').get('live_mode', True)
4645
if live_mode:
4746
args = ('--incremental',
4847
'--show-column-numbers',

0 commit comments

Comments
 (0)