Skip to content

Commit 43c3cfe

Browse files
PR comment
1 parent c0d0297 commit 43c3cfe

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/scripts/check_notebooks.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ def is_valid_notebook(path: Path) -> bool:
3333
return False
3434

3535

36-
if __name__ == "__main__":
36+
def main() -> None:
37+
"""
38+
Main function to validate the format of changed notebooks.
39+
"""
3740
changed_notebooks = get_changed_notebooks()
3841
if not changed_notebooks:
3942
print("No changed .ipynb files to validate.")
@@ -52,3 +55,7 @@ def is_valid_notebook(path: Path) -> bool:
5255
sys.exit(1)
5356
else:
5457
print("All changed notebooks are valid.")
58+
59+
60+
if __name__ == "__main__":
61+
main()

0 commit comments

Comments
 (0)