Skip to content

Commit

Permalink
add linting step
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchobben committed Sep 3, 2024
1 parent 90316a7 commit 7fa8f55
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ Commit notebooks without output for smaller file sizes and interactive teaching.

```
pip install nbstripout
nbstripout ../*.ipynb
nbstripout **/*.ipynb
```

Check you code for correct syntax as we want to show off good practices. You can use flake8-nb to check your writing.

```
pip install flake8-nb
flake8-nb **/*.ipynb
```

The pre-commit hooks can be used to check whether outputs are empty. This can be achieved, like so:
Expand Down

0 comments on commit 7fa8f55

Please sign in to comment.