Skip to content

Commit 0984fac

Browse files
authored
Fix black-jupyter pre-commit hook config (#1232)
Fixes #1156
1 parent df28810 commit 0984fac

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
language: python
2626
require_serial: true
2727
types_or: [python, pyi, jupyter]
28-
additional_dependencies: [".[jupyter]"]
28+
additional_dependencies: ["black[jupyter]"]
2929

3030
- id: codespell
3131
name: codespell

docs/tutorials/pystac-spacenet-tutorial.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@
250250
"source": [
251251
"bounds = [\n",
252252
" list(\n",
253-
" GeometryCollection([shape(s.geometry) for s in spacenet.get_items(recursive=True)]).bounds\n",
253+
" GeometryCollection(\n",
254+
" [shape(s.geometry) for s in spacenet.get_items(recursive=True)]\n",
255+
" ).bounds\n",
254256
" )\n",
255257
"]\n",
256258
"vegas.extent.spatial = pystac.SpatialExtent(bounds)"

0 commit comments

Comments
 (0)