Spaces:
Runtime error
Runtime error
File size: 476 Bytes
aaef24a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/usr/bin/env python
"""Report marimo notebooks that are missing an H1 title."""
import sys
from pathlib import Path
from utils import get_notebook_title
def main():
root = Path(__file__).parent.parent
notebooks = sorted(root.glob("*/[0-9]*.py"))
missing = [nb for nb in notebooks if get_notebook_title(nb) is None]
if missing:
for nb in missing:
print(nb.relative_to(root))
sys.exit(1)
if __name__ == "__main__":
main()
|