From 270f3083d7f11120a2dd656563e7f0f4c7ed02cb Mon Sep 17 00:00:00 2001
From: Remco de Boer <29308176+redeboer@users.noreply.github.com>
Date: Sun, 24 Apr 2022 22:40:11 +0200
Subject: [PATCH 01/21] ci: find binary output in notebooks with pre-commit
---
.pre-commit-config.yaml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index dfea940e..45960906 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -41,7 +41,7 @@ repos:
)$
- repo: https://github.com/ComPWA/repo-maintenance
- rev: 0.0.123
+ rev: 0.0.124
hooks:
- id: check-dev-files
args:
@@ -119,7 +119,6 @@ repos:
metadata.toc-showmarkdowntxt
metadata.toc-showtags
metadata.varInspector
-
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
From 53515378a053a417b1701af8ea69c293a7487242 Mon Sep 17 00:00:00 2001
From: Remco de Boer <29308176+redeboer@users.noreply.github.com>
Date: Sun, 24 Apr 2022 22:40:12 +0200
Subject: [PATCH 02/21] ci: forbid committing binary files
---
.pre-commit-config.yaml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 45960906..92715a88 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -40,6 +40,15 @@ repos:
.*\.svg
)$
+ - repo: https://github.com/jumanjihouse/pre-commit-hooks
+ rev: 2.1.6
+ hooks:
+ - id: forbid-binary
+ exclude: >
+ (?x)^(
+ docs/_static/favicon.ico
+ )$
+
- repo: https://github.com/ComPWA/repo-maintenance
rev: 0.0.124
hooks:
From 4cae1e53b1dc2909915cd7c9dd89dcb631792033 Mon Sep 17 00:00:00 2001
From: Remco de Boer <29308176+redeboer@users.noreply.github.com>
Date: Sun, 24 Apr 2022 22:40:13 +0200
Subject: [PATCH 03/21] chore: remove binaries from ADR-001/operators
---
docs/adr/001/operators.ipynb | 177 ++++-------------------------------
1 file changed, 18 insertions(+), 159 deletions(-)
diff --git a/docs/adr/001/operators.ipynb b/docs/adr/001/operators.ipynb
index c30c40d2..5a870a3c 100644
--- a/docs/adr/001/operators.ipynb
+++ b/docs/adr/001/operators.ipynb
@@ -72,24 +72,11 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
- "tags": []
+ "tags": [
+ "remove-output"
+ ]
},
- "outputs": [
- {
- "data": {
- "application/vnd.jupyter.widget-view+json": {
- "model_id": "c7846d1422964a3a81627a061844c1b8",
- "version_major": 2,
- "version_minor": 0
- },
- "text/plain": [
- "Propagating quantum numbers: 0%| | 0/24 [00:00, ?it/s]"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- }
- ],
+ "outputs": [],
"source": [
"import expertsystem as es\n",
"\n",
@@ -118,145 +105,7 @@
"metadata": {
"tags": []
},
- "outputs": [
- {
- "data": {
- "image/svg+xml": [
- "\n",
- "\n",
- "\n",
- "\n",
- "\n"
- ],
- "text/plain": [
- ""
- ]
- },
- "execution_count": null,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"import graphviz\n",
"\n",
@@ -265,11 +114,20 @@
"graphviz.Source(dot)"
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ ""
+ ]
+ },
{
"cell_type": "code",
"execution_count": null,
"metadata": {
- "tags": []
+ "tags": [
+ "keep_output"
+ ]
},
"outputs": [
{
@@ -321,7 +179,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
- "tags": []
+ "tags": [
+ "keep_output"
+ ]
},
"outputs": [
{
@@ -538,7 +398,6 @@
}
],
"metadata": {
- "keep_output": true,
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
From c89805d4a2a2cd15b5e7d74a97596633a97b7b66 Mon Sep 17 00:00:00 2001
From: Remco de Boer <29308176+redeboer@users.noreply.github.com>
Date: Sun, 24 Apr 2022 22:40:14 +0200
Subject: [PATCH 04/21] chore: remove binaries from ADR-001/sympy
---
docs/adr/001/sympy.ipynb | 11689 +------------------------------------
1 file changed, 185 insertions(+), 11504 deletions(-)
diff --git a/docs/adr/001/sympy.ipynb b/docs/adr/001/sympy.ipynb
index 38bde130..74e91950 100644
--- a/docs/adr/001/sympy.ipynb
+++ b/docs/adr/001/sympy.ipynb
@@ -143,7 +143,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
- "tags": []
+ "tags": [
+ "keep_output"
+ ]
},
"outputs": [
{
@@ -170,7 +172,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
- "tags": []
+ "tags": [
+ "keep_output"
+ ]
},
"outputs": [
{
@@ -202,7 +206,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
- "tags": []
+ "tags": [
+ "keep_output"
+ ]
},
"outputs": [
{
@@ -234,7 +240,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
- "tags": []
+ "tags": [
+ "keep_output"
+ ]
},
"outputs": [
{
@@ -315,2468 +323,33 @@
"metadata": {
"tags": []
},
- "outputs": [
- {
- "data": {
- "image/svg+xml": [
- "\n",
- "\n",
- "