Skip to content

Commit 72d5c9e

Browse files
committed
Add back nb-clean
1 parent 8c80661 commit 72d5c9e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,18 @@ repos:
124124

125125
# Priority 2+: Final checks and fixers
126126

127+
## Clean Jupyter notebooks
128+
- repo: https://github.com/srstevenson/nb-clean
129+
rev: 4.0.1
130+
hooks:
131+
- id: nb-clean
132+
args:
133+
- --remove-empty-cells
134+
- --preserve-cell-metadata
135+
- raw_mimetype
136+
- --
137+
priority: 2
138+
127139
## Also run Black on examples in the documentation (needs to run after ruff format)
128140
- repo: https://github.com/adamchainz/blacken-docs
129141
rev: 1.20.0

0 commit comments

Comments
 (0)