Skip to content

Commit ffd46c8

Browse files
committed
set_matrix: format
1 parent 86b2624 commit ffd46c8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/set_matrix.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ def json_from_file_ignore_comments(filepath):
1616
with open(filepath, "r") as fh:
1717
for line in fh:
1818
cleaned_line = line.split("//", 1)[0]
19-
if len(cleaned_line) > 0 and line.endswith("\n") and "\n" not in cleaned_line:
19+
if (
20+
len(cleaned_line) > 0
21+
and line.endswith("\n")
22+
and "\n" not in cleaned_line
23+
):
2024
cleaned_line += "\n"
2125
contents += cleaned_line
2226
json_data = json.loads(contents)

0 commit comments

Comments
 (0)