Skip to content

Commit 27a3290

Browse files
authored
Merge pull request #514 from ocefpaf/pep8_notebooks
Pep8 notebooks
2 parents 6f5b8b9 + 059c30d commit 27a3290

15 files changed

Lines changed: 769 additions & 675 deletions

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ script:
5050

5151
- if [[ $TEST_TARGET == 'coding_standards' ]]; then
5252
find . -type f -name "*.py" ! -name 'conf.py' | xargs flake8 --max-line-length=100 ;
53+
for file in $(find . -type f -name "*.ipynb"); do jupyter nbconvert --template=tests/strip_markdown.tpl --stdout --to python $file | grep -v '^get_ipython' | flake8 - --ignore=W391,E226,E402 --max-line-length=100 --show-source ; done ;
5354
fi
5455

5556
- if [[ $TEST_TARGET == 'notebooks' ]]; then

docs/developer/plugins_introduction.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,21 @@
112112
],
113113
"metadata": {
114114
"kernelspec": {
115-
"display_name": "Python 2",
115+
"display_name": "Python [default]",
116116
"language": "python",
117-
"name": "python2"
117+
"name": "python3"
118118
},
119119
"language_info": {
120120
"codemirror_mode": {
121121
"name": "ipython",
122-
"version": 2
122+
"version": 3
123123
},
124124
"file_extension": ".py",
125125
"mimetype": "text/x-python",
126126
"name": "python",
127127
"nbconvert_exporter": "python",
128-
"pygments_lexer": "ipython2",
129-
"version": "2.7.10"
128+
"pygments_lexer": "ipython3",
129+
"version": "3.5.2"
130130
}
131131
},
132132
"nbformat": 4,

examples/Colormaps.ipynb

Lines changed: 120 additions & 120 deletions
Large diffs are not rendered by default.

examples/Features.ipynb

Lines changed: 129 additions & 97 deletions
Large diffs are not rendered by default.

examples/GeoJSON_and_choropleth.ipynb

Lines changed: 96 additions & 117 deletions
Large diffs are not rendered by default.

examples/Geopandas.ipynb

Lines changed: 19 additions & 19 deletions
Large diffs are not rendered by default.

examples/ImageOverlay.ipynb

Lines changed: 56 additions & 49 deletions
Large diffs are not rendered by default.

examples/MarkerCluster.ipynb

Lines changed: 18 additions & 14 deletions
Large diffs are not rendered by default.

examples/Plugins.ipynb

Lines changed: 36 additions & 19 deletions
Large diffs are not rendered by default.

examples/Popups.ipynb

Lines changed: 43 additions & 57 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)