aai-institute / aai-institute/tfl-training-sbi

Re-activate Notebook validation

オープン
#64 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement house-keeping
主要言語
Jupyter Notebook
スター
4
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

In order to push notebooks with a commented load stmt. - s.t. participants don't accidentally see the solution - the validation was deactivated in a589d85. However, it is a useful check to not hand out notebooks with solutions included. Therefore, it has to be re-activated with a nice workaround s.t. the `%load` magic command not executed by accident.

```bash
- name: validate notebooks
run: |
for notebook in notebooks/*.ipynb; do
if grep -q '# *%load ' "$notebook"; then
echo "$notebook contains an executed load statement.
This is not allowed inside the docker image for participants, make sure you remove this
in a future commit."
exit 255
fi
done
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。