Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomv564 committed Oct 29, 2018
1 parent 0e7ec60 commit c70ca23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyls_mypy/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
from pyls import hookimpl

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


def parse_line(line, document=None):
'''
Expand Down Expand Up @@ -42,7 +41,7 @@ def parse_line(line, document=None):

@hookimpl
def pyls_lint(config, document):
live_mode = config.plugin_settings('pyls_mypy').get(LIVE_MODE, DEFAULT_LIVE_MODE)
live_mode = config.plugin_settings('pyls_mypy').get('live_mode', True)
if live_mode:
args = ('--incremental',
'--show-column-numbers',
Expand Down

0 comments on commit c70ca23

Please sign in to comment.