docs: run codespell on all notebooks (#736)

* run codespell on all notebooks

* fix codespell
This commit is contained in:
Vadym Barda
2024-06-20 21:39:13 -04:00
committed by GitHub
parent cae502b8fe
commit f741fbf92e
20 changed files with 70 additions and 55 deletions
+13
View File
@@ -0,0 +1,13 @@
ERROR_FOUND=0
for file in $(find $1 -name "*.ipynb"); do
OUTPUT=$(cat "$file" | jupytext --from ipynb --to py:percent | codespell -)
if [ -n "$OUTPUT" ]; then
echo "Errors found in $file"
echo "$OUTPUT"
ERROR_FOUND=1
fi
done
if [ "$ERROR_FOUND" -ne 0 ]; then
exit 1
fi