-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5a6fc3
commit 2bf8bd1
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
for notebook in docs/examples/*.ipynb; do | ||
# Check the notebook for null execution counts | ||
if ! jq -e '.cells | map(select(.cell_type == "code") | .execution_count != null) | all' "$notebook" > /dev/null; then | ||
echo "Error: $notebook has code cells with null execution counts." | ||
exit 1 | ||
fi | ||
done | ||
|
||
# If all notebooks are valid | ||
echo "All notebooks have valid execution counts." | ||
exit 0 |