Skip to content

Commit 6e46eb6

Browse files
committed
Use pre-commit to strip notebook output
1 parent 9d6260c commit 6e46eb6

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ repos:
4242
hooks:
4343
- id: black
4444
- id: black-jupyter
45+
- repo: https://github.com/kynan/nbstripout
46+
rev: 0.7.1
47+
hooks:
48+
- id: nbstripout

Sandbox.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"id": "df29dca7-2d79-42a0-b74f-3eebbd48512d",
6+
"id": "0",
77
"metadata": {
88
"tags": []
99
},
@@ -15,7 +15,7 @@
1515
{
1616
"cell_type": "code",
1717
"execution_count": null,
18-
"id": "1d59eb20-7218-4619-9de2-e411cbed53f7",
18+
"id": "1",
1919
"metadata": {
2020
"tags": []
2121
},
@@ -27,7 +27,7 @@
2727
{
2828
"cell_type": "code",
2929
"execution_count": null,
30-
"id": "66041f39-125c-4969-9a61-16d327b38fa4",
30+
"id": "2",
3131
"metadata": {
3232
"tags": []
3333
},
@@ -42,7 +42,7 @@
4242
{
4343
"cell_type": "code",
4444
"execution_count": null,
45-
"id": "a4c57fec-9e2e-445a-b8cf-9d182f58d88c",
45+
"id": "3",
4646
"metadata": {
4747
"tags": []
4848
},
@@ -60,7 +60,7 @@
6060
{
6161
"cell_type": "code",
6262
"execution_count": null,
63-
"id": "e9ba3ee3-b0a7-4b50-93b9-e05660760948",
63+
"id": "4",
6464
"metadata": {
6565
"tags": []
6666
},
@@ -81,7 +81,7 @@
8181
{
8282
"cell_type": "code",
8383
"execution_count": null,
84-
"id": "d341bf1b-5df6-4405-9334-6af4fd7c57c3",
84+
"id": "5",
8585
"metadata": {
8686
"tags": []
8787
},
@@ -93,7 +93,7 @@
9393
{
9494
"cell_type": "code",
9595
"execution_count": null,
96-
"id": "e6ab9afc-e459-4864-bc95-9f7b1d1d67ae",
96+
"id": "6",
9797
"metadata": {},
9898
"outputs": [],
9999
"source": []

0 commit comments

Comments
 (0)