Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
roy-ht committed Nov 14, 2019
1 parent a081769 commit b043393
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
pre-commit hook to remove cell output of .ipynb notebook and some metadata for better security.

Sample config:
```
repos:
- repo: https://github.com/aflc/pre-commit-jupyter
rev: v1.0.0
hooks:
- id: jupyter-notebook-cleanup
args:
- --remove-kernel-metadata
- --pin-patterns
- "[pin];[donotremove]"
```

If you have "pin patterns", You can keep cell outputs like that:

```
# [pin]
some_function()
print("some info")
```

```
# [donotremove]
some_function()
print("some info")
```

0 comments on commit b043393

Please sign in to comment.