Skip to content

Commit 54f06a3

Browse files
committed
use flake8-nb
1 parent dd20853 commit 54f06a3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/test_notebooks.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,4 @@ jobs:
4646
- name: Notebook coding standards tests
4747
shell: bash -l {0}
4848
run: |
49-
for NB in $(find . -type f -name "*.ipynb")
50-
do $MAMBA_ROOT_PREFIX/envs/TEST/bin/jupyter-nbconvert --stdout --to python "${NB}" | $MAMBA_ROOT_PREFIX/envs/TEST/bin/flake8 - --ignore=W391,E226,E402,,W504,I100,I201,I202 --max-line-length=120 --show-source --count
51-
done
49+
$MAMBA_ROOT_PREFIX/envs/TEST/bin/flake8-nb examples --ignore=W391,E226,E402,,W504,I100,I201,I202 --max-line-length=120 --show-source --count

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ flake8-builtins
77
flake8-comprehensions
88
flake8-import-order
99
flake8-mutable
10+
flake8-nbw
1011
flake8-quotes
1112
geographiclib
1213
# geopandas

0 commit comments

Comments
 (0)