Skip to content

Commit a0e0c7e

Browse files
authored
Merge pull request #959 from seeM/pre-commit
Experimental: pre-commit hooks
2 parents 5411d9e + af3fbdd commit a0e0c7e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
- &hook
2+
id: nbdev_clean
3+
name: nbdev_clean
4+
entry: nbdev_clean
5+
description: "Clean metadata from notebooks to avoid merge conflicts"
6+
language: system
7+
always_run: true
8+
pass_filenames: false
9+
10+
- <<: *hook
11+
id: nbdev_export
12+
name: nbdev_export
13+
entry: nbdev_export
14+
description: "Export notebooks to modules and build modidx"

0 commit comments

Comments
 (0)