File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ def _continue_skip_next_lines(
268
268
if _noqa_comment_line_re .fullmatch (line_content [line_no - 1 ]):
269
269
# Find next non-empty line
270
270
next_line_no = line_no
271
- while next_line_no < len (line_content ) and line_content [next_line_no ].strip ():
271
+ while next_line_no < len (line_content ) and not line_content [next_line_no ].strip ():
272
272
next_line_no += 1
273
273
if next_line_no >= len (line_content ):
274
274
continue
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def test_playbook_noqa2(default_text_runner: RunFromText) -> None:
66
66
67
67
def test_var_noqa (default_text_runner : RunFromText ) -> None :
68
68
"""Check that noqa is properly taken into account on vars and tasks."""
69
- results = default_text_runner .run ("examples/playbooks/vars/noqa_multiline.yml" )
69
+ results = default_text_runner .run (Path ( "examples/playbooks/vars/noqa_multiline.yml" ) )
70
70
# Should raise no error at "SOME_VAR".
71
71
assert len (results ) == 0
72
72
You can’t perform that action at this time.
0 commit comments