From f15d8de35e59d2572aeee773e04e7a1fee143660 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sun, 23 Nov 2025 05:53:31 +0000
Subject: [PATCH] Remove pre-commit from main dependencies and clean up test
artifacts
Co-authored-by: mingrammer <6178510+mingrammer@users.noreply.github.com>
---
.gitignore | 8 ++++++++
diagram-c0af1cf | 8 --------
diagram-e5a94d3 | 9 ---------
diagram-eaf0ab7 | 7 -------
diagram-ecb3d63 | 7 -------
diagram-efecb5c | 8 --------
diagram-f276bc0 | 9 ---------
diagram-f5717ea | 8 --------
diagrams_image | 6 ------
example_1 | 6 ------
file1.py | 4 ----
file2.py | 12 ------------
my_custom_name | 6 ------
pyproject.toml | 1 -
test | 5 -----
test_diagram.py | 4 ----
test_resources_render | 7 -------
17 files changed, 8 insertions(+), 107 deletions(-)
delete mode 100644 diagram-c0af1cf
delete mode 100644 diagram-e5a94d3
delete mode 100644 diagram-eaf0ab7
delete mode 100644 diagram-ecb3d63
delete mode 100644 diagram-efecb5c
delete mode 100644 diagram-f276bc0
delete mode 100644 diagram-f5717ea
delete mode 100644 diagrams_image
delete mode 100644 example_1
delete mode 100644 file1.py
delete mode 100644 file2.py
delete mode 100644 my_custom_name
delete mode 100644 test
delete mode 100644 test_diagram.py
delete mode 100644 test_resources_render
diff --git a/.gitignore b/.gitignore
index a74bc767..66d0c82d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,14 @@ __pycache__/
# graphviz
*.gv*
+# test outputs
+diagram-*
+diagrams_image
+example_*
+my_custom_name
+test_diagram.py
+test_resources_render
+
# dist
dist
website/build
diff --git a/diagram-c0af1cf b/diagram-c0af1cf
deleted file mode 100644
index 7e9f3ba5..00000000
--- a/diagram-c0af1cf
+++ /dev/null
@@ -1,8 +0,0 @@
-digraph "diagram-c0af1cf" {
- graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="diagram-c0af1cf" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho]
- node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
- edge [color="#7B8894"]
- c72b9d95921943db990cc46ba03d5b8b [label=<system 1
[System]
> fillcolor=dodgerblue4 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2]
- b1131c82c8a54cf8a697ae775d37acf0 [label=<system 2
[System]
> fillcolor=dodgerblue4 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2]
- c72b9d95921943db990cc46ba03d5b8b -> b1131c82c8a54cf8a697ae775d37acf0 [color=gray60 constraint=False dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 style=dashed]
-}
diff --git a/diagram-e5a94d3 b/diagram-e5a94d3
deleted file mode 100644
index c443c687..00000000
--- a/diagram-e5a94d3
+++ /dev/null
@@ -1,9 +0,0 @@
-digraph "diagram-e5a94d3" {
- graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="diagram-e5a94d3" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho]
- node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
- edge [color="#7B8894"]
- subgraph cluster_System {
- graph [bgcolor=white fontname="Sans-Serif" fontsize=12 label=System labeljust=l margin=16 pencolor="#AEB6BE" rankdir=LR shape=box style=dashed]
- "592242be7e0145a49ef192066cae1f63" [label=<container
[Container: type]
description
> fillcolor=dodgerblue3 fixedsize=true fontcolor=white height=1.6 labelloc=c shape=rect style=filled width=2.6]
- }
-}
diff --git a/diagram-eaf0ab7 b/diagram-eaf0ab7
deleted file mode 100644
index f1151e38..00000000
--- a/diagram-eaf0ab7
+++ /dev/null
@@ -1,7 +0,0 @@
-digraph "diagram-eaf0ab7" {
- graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="diagram-eaf0ab7" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho]
- node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
- edge [color="#7B8894"]
- "24468c3baedb4508a9b8e8bade0f3d5e" [label=<person
[External Person]
> fillcolor=gray60 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style="rounded,filled" width=2]
- e7c4e1c1e9a84f2483022bb31c4f9208 [label=<external
[External System]
> fillcolor=gray60 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2]
-}
diff --git a/diagram-ecb3d63 b/diagram-ecb3d63
deleted file mode 100644
index baf9e384..00000000
--- a/diagram-ecb3d63
+++ /dev/null
@@ -1,7 +0,0 @@
-digraph "diagram-ecb3d63" {
- graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="diagram-ecb3d63" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho]
- node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
- edge [color="#7B8894"]
- "430f4de0b37c4101abf3eac190ba9268" [label=<system
[System]
The internal system.
> fillcolor=dodgerblue4 fixedsize=true fontcolor=white height=1.6 labelloc=c shape=rect style=filled width=2.6]
- "4a0ca384bda048a6853f58f613016af3" [label=<unknown
[System]
> fillcolor=dodgerblue4 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2]
-}
diff --git a/diagram-efecb5c b/diagram-efecb5c
deleted file mode 100644
index 33229f19..00000000
--- a/diagram-efecb5c
+++ /dev/null
@@ -1,8 +0,0 @@
-digraph "diagram-efecb5c" {
- graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="diagram-efecb5c" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho]
- node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
- edge [color="#7B8894"]
- "9418f8e9a0a44f9f99dcc006c22de220" [label=<person
[Person]
A person.
> fillcolor=dodgerblue4 fixedsize=true fontcolor=white height=1.6 labelloc=c shape=rect style="rounded,filled" width=2.6]
- "923b851349c94f0aaa3f1e10a3083a52" [label=<container
[Container: Java application]
The application.
> fillcolor=dodgerblue3 fixedsize=true fontcolor=white height=1.6 labelloc=c shape=rect style=filled width=2.6]
- "98bf42f6b090418fb09f6cbcdf8873ce" [label=<database
[Database: Oracle database]
Stores information.
> fillcolor=dodgerblue3 fixedsize=true fontcolor=white height=1.6 labelloc=b shape=cylinder style=filled width=2.6]
-}
diff --git a/diagram-f276bc0 b/diagram-f276bc0
deleted file mode 100644
index e7365d53..00000000
--- a/diagram-f276bc0
+++ /dev/null
@@ -1,9 +0,0 @@
-digraph "diagram-f276bc0" {
- graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="diagram-f276bc0" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho]
- node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
- edge [color="#7B8894"]
- d203be521dbd43c8aeb03d4a6b8e5191 [label=<container1
[Container]
> fillcolor=dodgerblue3 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2]
- "387f4dac0f604af3a548a3b973dacf7d" [label=<container2
[Container]
> fillcolor=dodgerblue3 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2]
- d203be521dbd43c8aeb03d4a6b8e5191 -> "387f4dac0f604af3a548a3b973dacf7d" [label=<depends on> color=gray60 dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 style=dashed]
- d203be521dbd43c8aeb03d4a6b8e5191 -> "387f4dac0f604af3a548a3b973dacf7d" [label=<is depended on by> color=gray60 dir=back fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 style=dashed]
-}
diff --git a/diagram-f5717ea b/diagram-f5717ea
deleted file mode 100644
index ad7be85e..00000000
--- a/diagram-f5717ea
+++ /dev/null
@@ -1,8 +0,0 @@
-digraph "diagram-f5717ea" {
- graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="diagram-f5717ea" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho]
- node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
- edge [color="#7B8894"]
- "880dd86b8a1d4b36ab1c6558f9f58809" [label=<container1
[Container]
> fillcolor=dodgerblue3 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2]
- b64353b35e3d4d01ac8fb8f1f2b6165b [label=<container2
[Container]
> fillcolor=dodgerblue3 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2]
- "880dd86b8a1d4b36ab1c6558f9f58809" -> b64353b35e3d4d01ac8fb8f1f2b6165b [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13]
-}
diff --git a/diagrams_image b/diagrams_image
deleted file mode 100644
index a97525d9..00000000
--- a/diagrams_image
+++ /dev/null
@@ -1,6 +0,0 @@
-digraph {
- graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho]
- node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
- edge [color="#7B8894"]
- be3e7011f7514ee492a580db1dcacc8e [label=node1]
-}
diff --git a/example_1 b/example_1
deleted file mode 100644
index 2b8940db..00000000
--- a/example_1
+++ /dev/null
@@ -1,6 +0,0 @@
-digraph "Example 1" {
- graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="Example 1" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho]
- node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
- edge [color="#7B8894"]
- "8111bf35d7e14c0cb56fbd84c6e7a187" [label=node1]
-}
diff --git a/file1.py b/file1.py
deleted file mode 100644
index 46f07282..00000000
--- a/file1.py
+++ /dev/null
@@ -1,4 +0,0 @@
-
-from diagrams import Diagram
-with Diagram(name="Test", show=False):
- pass
diff --git a/file2.py b/file2.py
deleted file mode 100644
index e6370e77..00000000
--- a/file2.py
+++ /dev/null
@@ -1,12 +0,0 @@
-
-from diagrams import Diagram
-from diagrams.aws.compute import EC2
-from diagrams.aws.database import RDS
-from diagrams.aws.network import ELB
-
-with Diagram("test_2", show=False, direction="TB"):
- ELB("lb") >> [EC2("ワーカー1"),
- EC2("작업자 2를"),
- EC2("робітник 3"),
- EC2("worker4"),
- EC2("työntekijä 4")] >> RDS("events")
diff --git a/my_custom_name b/my_custom_name
deleted file mode 100644
index 6b00aa6d..00000000
--- a/my_custom_name
+++ /dev/null
@@ -1,6 +0,0 @@
-digraph "Example 1" {
- graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="Example 1" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho]
- node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
- edge [color="#7B8894"]
- "4ad261638b564255b7c82ce358aa7811" [label=node1]
-}
diff --git a/pyproject.toml b/pyproject.toml
index d0489a8b..903ba270 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -14,7 +14,6 @@ dependencies = [
"graphviz>=0.13.2,<0.21.0",
"jinja2>=2.10,<4.0",
"typed-ast>=1.5.5,<2 ; python_version<'3.8'",
- "pre-commit>=4.0.1,<5",
]
[project.scripts]
diff --git a/test b/test
deleted file mode 100644
index 8f0382ff..00000000
--- a/test
+++ /dev/null
@@ -1,5 +0,0 @@
-digraph Test {
- graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label=Test nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho]
- node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
- edge [color="#7B8894"]
-}
diff --git a/test_diagram.py b/test_diagram.py
deleted file mode 100644
index 46f07282..00000000
--- a/test_diagram.py
+++ /dev/null
@@ -1,4 +0,0 @@
-
-from diagrams import Diagram
-with Diagram(name="Test", show=False):
- pass
diff --git a/test_resources_render b/test_resources_render
deleted file mode 100644
index acb6c1a8..00000000
--- a/test_resources_render
+++ /dev/null
@@ -1,7 +0,0 @@
-digraph test_resources_render {
- graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label=test_resources_render nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho]
- node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
- edge [color="#7B8894"]
- e3bddeae331a4c14869f108a92ac3b80 [label="test-ec2" height=1.9 image="/home/runner/work/diagrams/diagrams/resources/aws/compute/ec2.png" shape=none]
- "9ec4b6d0627149d28dda2ccb2792fcb3" [label="test-rds" height=1.9 image="/home/runner/work/diagrams/diagrams/resources/aws/database/rds.png" shape=none]
-}