File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
tests/capture_tools_output Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -597,15 +597,16 @@ def make_annotations(
597597 count += 1
598598 for note in GlobalParser .tidy_notes :
599599 if lines_changed_only :
600- filename = note .filename .replace ("\\ " , "/" )
600+ filename = note .filename .replace ("\\ " , "/" ). lstrip ( "/" )
601601 line_filter = []
602602 for file in files :
603+ print (filename , "?=" , file ["filename" ])
603604 if filename == file ["filename" ]:
604605 line_filter = cast (
605606 List [int ], range_of_changed_lines (file , lines_changed_only )
606607 )
607608 break
608- else :
609+ else : # filename match not found; treat line_filter as empty list
609610 continue
610611 if note .line in line_filter or not line_filter :
611612 count += 1
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ def test_tidy_annotations(
264264 prep_tmp_dir (
265265 tmp_path ,
266266 monkeypatch ,
267- ** TEST_REPO_COMMIT_PAIRS [0 ],
267+ ** TEST_REPO_COMMIT_PAIRS [3 ],
268268 copy_configs = False ,
269269 lines_changed_only = lines_changed_only ,
270270 )
You can’t perform that action at this time.
0 commit comments