Skip to content

Commit

Permalink
improve author validation
Browse files Browse the repository at this point in the history
  • Loading branch information
fcmsilva committed Jun 20, 2024
1 parent 0c70c62 commit 0ac816f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion resources/nb-meta-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ def error(msg):
if 'description' not in meta:
error(f'No `description` in `meta` section of {f}')

if 'authors' not in meta or not meta['authors']:
# Authors must be a non-empty list
if (
'authors' not in meta
or not isinstance(meta['authors'], list)
or not meta['authors']
):
error(f'No `authors` in `meta` section of {f}')

if 'icon' not in meta:
Expand Down

0 comments on commit 0ac816f

Please sign in to comment.