Skip to content

Commit eb55e9b

Browse files
authored
Simplify image node style, add deepwiki link (#115)
* Simplify image node style, add deepwiki linke * reverting simplification in order to maintain e.g. html labels and border styling
1 parent 19c762d commit eb55e9b

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Anaconda-Server Badge](https://anaconda.org/conda-forge/graphviz2drawio/badges/version.svg)](https://anaconda.org/conda-forge/graphviz2drawio)
55
[![homebrew version](https://img.shields.io/homebrew/v/graphviz2drawio)](https://formulae.brew.sh/formula/graphviz2drawio)
66
[![Lint and Test](https://github.com/hbmartin/graphviz2drawio/actions/workflows/lint.yml/badge.svg)](https://github.com/hbmartin/graphviz2drawio/actions/workflows/lint.yml)
7-
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
7+
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/hbmartin/graphviz2drawio)
88
[![CodeFactor](https://www.codefactor.io/repository/github/hbmartin/graphviz2drawio/badge)](https://www.codefactor.io/repository/github/hbmartin/graphviz2drawio)
99
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=hbmartin_graphviz2drawio&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=hbmartin_graphviz2drawio)
1010

@@ -89,7 +89,9 @@ where `graph_to_convert` can be any of a file path, file handle, string of dot l
8989

9090
Pull requests and issue reports are welcome. For major changes, please open an issue first to discuss what you would like to change.
9191

92-
Thanks to all the people who have contributed to this project.
92+
To see architectural and process diagrams please visit [the deepwiki page](https://deepwiki.com/hbmartin/graphviz2drawio)
93+
94+
Thanks to all the people who have contributed to this project!
9395

9496
[![Profile images of all the contributors](https://contrib.rocks/image?repo=hbmartin/graphviz2drawio)](https://github.com/hbmartin/graphviz2drawio/graphs/contributors)
9597

@@ -98,8 +100,8 @@ Thanks to all the people who have contributed to this project.
98100
```bash
99101
git clone git@github.com:hbmartin/graphviz2drawio.git
100102
cd graphviz2drawio
101-
python3 -m venv venv
102-
source venv/bin/activate
103+
python3 -m venv .venv
104+
source .venv/bin/activate
103105
pip install -r requirements.txt
104106
# Replace with the actual path to your dot files
105107
python -m graphviz2drawio test/directed/hello.gv.txt

test/directed/with_image.gv.txt

Whitespace-only changes.

test/test_bezier.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_simple_curve_approximation(self):
2323
self.assertEqual(result[0], p0)
2424
self.assertEqual(result[2], p2)
2525
# Control point should be somewhere reasonable
26-
self.assertTrue(isinstance(result[1], complex))
26+
self.assertIsInstance(result[1], complex)
2727

2828
def test_straight_line_approximation(self):
2929
"""Test approximation of a cubic curve that's essentially a straight line."""
@@ -165,8 +165,7 @@ def test_complex_s_curve(self):
165165

166166
result = subdivide_inflections(p0, c1, c2, p3)
167167

168-
# Should have at least one subdivision
169-
self.assertTrue(len(result) >= 2)
168+
self.assertEqual(len(result), 2)
170169

171170
# All curves should connect properly
172171
for i in range(len(result) - 1):

0 commit comments

Comments
 (0)