Skip to content

Commit

Permalink
Correctly parse file paths on Windows
Browse files Browse the repository at this point in the history
The old regex couldn't handle drive letters and the following colon.

Fixes #46.
  • Loading branch information
FichteFoll committed Nov 5, 2019
1 parent ea44030 commit a920800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
class Mypy(PythonLinter):
"""Provides an interface to mypy."""

regex = r'^[^:]+:(?P<line>\d+):((?P<col>\d+):)?\s*(?P<error_type>[^:]+):\s*(?P<message>.+)'
regex = r'^(\w:)?[^:]+:(?P<line>\d+):((?P<col>\d+):)?\s*(?P<error_type>[^:]+):\s*(?P<message>.+)'
line_col_base = (1, 1)
tempfile_suffix = 'py'
default_type = const.WARNING
Expand Down

0 comments on commit a920800

Please sign in to comment.