Skip to content

Commit a4461ef

Browse files
committed
Add pre-commit to verify that notebook format execution count is fine
1 parent 17c95d3 commit a4461ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ repos:
4444
additional_dependencies:
4545
- "nbformat"
4646
require_serial: true
47+
- id: verify-notebook-format-execution-count
48+
name: Verify that execution-count >= 0
49+
language: pygrep
50+
files: \.ipynb$
51+
entry: '"execution_count": -'
4752

4853
- repo: https://github.com/kynan/nbstripout
4954
rev: 0.8.1

0 commit comments

Comments
 (0)