File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -167,10 +167,13 @@ def remove_empty_lines(lines: List[str]) -> List[str]:
167
167
def sorted_by_file_and_line (lines : List [str ]) -> List [str ]:
168
168
def extract_parts_as_tuple (line : str ) -> Tuple [str , int , str ]:
169
169
if len (line .split (':' , maxsplit = 2 )) < 3 :
170
- return ( '' , 0 , '' )
170
+ return '' , 0 , ''
171
171
172
172
fname , line_number , contents = line .split (':' , maxsplit = 2 )
173
- return fname , int (line_number ), contents
173
+ try :
174
+ return fname , int (line_number ), contents
175
+ except ValueError :
176
+ return '' , 0 , ''
174
177
return sorted (lines , key = extract_parts_as_tuple )
175
178
176
179
Original file line number Diff line number Diff line change 12
12
13
13
setup (
14
14
name = 'pytest-mypy-plugins' ,
15
- version = '1.1 .0' ,
15
+ version = '1.2 .0' ,
16
16
description = 'pytest plugin for writing tests for mypy plugins' ,
17
17
long_description = readme ,
18
18
long_description_content_type = 'text/markdown' ,
You can’t perform that action at this time.
0 commit comments