Skip to content

Commit

Permalink
diff comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Green committed Jun 20, 2024
1 parent 385666b commit 3496883
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks/working-with-vector-data/meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ description="""\
icon="browser"
difficulty="beginner"
tags=["starter", "vectodb", "genai"]
lesson_areas=["Python SDK", "AI"]
lesson_areas=["AI", "Python SDK"]
destinations=["spaces"]
minimum_tier="free-shared"
5 changes: 5 additions & 0 deletions resources/toml-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ def error(msg):
f'it must be an array of strings (can be empty)',
)

if not isinstance(meta['lesson_areas'], list):
error(
f'`lesson_areas` in `meta` section of {f} must be a list'
)

# Tags must be all lower-case, ascii letters
tags = meta.get('tags', [])

Expand Down

0 comments on commit 3496883

Please sign in to comment.