We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ae2072 commit b276a41Copy full SHA for b276a41
.github/workflows/style_checks.yaml
@@ -49,3 +49,14 @@ jobs:
49
find . -type f -not -path '*/\.git/*' -exec grep -Iq . {} \; -exec dos2unix --quiet {} \;
50
find . -type f -not -path '*/\.git/*' -exec grep -Iq . {} \; -exec chmod 644 {} \;
51
if [[ $(git ls-files -m) ]]; then git --no-pager diff HEAD; exit 1; fi
52
+
53
+ - name: Ensure example scripts have at least one code block separator
54
+ run: |
55
+ grep -L '# %%' $(find 'examples' -name '*.py') > output.txt
56
+ nfiles=$(wc -l output.txt | awk '{print $1}')
57
+ if [[ $nfiles > 0 ]]; then
58
+ echo "Code block separator '# %%' is required in following example files:"
59
+ cat output.txt
60
+ rm output.txt
61
+ exit $nfiles
62
+ fi
0 commit comments