Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
tiimgreen committed Jun 18, 2024
1 parent 4423de0 commit e1d3457
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/toml-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ def error(msg):
f'must be set to "free-shared" or "standard"',
)

if 'lesson_area' not in meta:
error(
f'No `lesson_area` in `meta` section of {f}; '
f'it must be an array of strings (can be empty)',
)

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

Expand Down

0 comments on commit e1d3457

Please sign in to comment.