We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0d0297 commit d586b40Copy full SHA for d586b40
.github/scripts/check_notebooks.py
@@ -33,7 +33,10 @@ def is_valid_notebook(path: Path) -> bool:
33
return False
34
35
36
-if __name__ == "__main__":
+def main() -> None:
37
+ """
38
+ Main function to validate the format of changed notebooks.
39
40
changed_notebooks = get_changed_notebooks()
41
if not changed_notebooks:
42
print("No changed .ipynb files to validate.")
@@ -52,3 +55,7 @@ def is_valid_notebook(path: Path) -> bool:
52
55
sys.exit(1)
53
56
else:
54
57
print("All changed notebooks are valid.")
58
+
59
60
+if __name__ == "__main__":
61
+ main()
0 commit comments