Skip to content

Commit 6a0e7da

Browse files
authored
data modeling - remove backslashes in f-string, update pr workflow to test 3.10 - 3.13 (#127)
* remove backslashes in f-string, update pr workflow to test 3.10 - 3.13 * Update CHANGELOG.md
1 parent b8cdd1b commit 6a0e7da

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/pr-mcp-neo4j-data-modeling.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ on:
1414
jobs:
1515
test:
1616
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
python-version: ['3.10', '3.11', '3.12', '3.13']
1720

1821
steps:
1922
- uses: actions/checkout@v3
2023

21-
- name: Set up Python 3.12
24+
- name: Set up Python ${{ matrix.python-version }}
2225
uses: actions/setup-python@v4
2326
with:
24-
python-version: '3.12'
27+
python-version: ${{ matrix.python-version }}
2528

2629
- name: Install UV
2730
run: |

servers/mcp-neo4j-data-modeling/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
## Next
22

33
### Fixed
4+
* Remove back slashes from f-string in Mermaid config generation
45

56
### Changed
67

78
### Added
9+
* Update PR workflow to iterate over Python 3.10 to 3.13
810

911
## v0.2.0
1012

servers/mcp-neo4j-data-modeling/src/mcp_neo4j_data_modeling/data_model.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,12 +508,14 @@ def get_mermaid_config_str(self) -> str:
508508
mermaid_nodes = [n.get_mermaid_config_str() for n in self.nodes]
509509
mermaid_relationships = [r.get_mermaid_config_str() for r in self.relationships]
510510
mermaid_styling = self._generate_mermaid_config_styling_str()
511+
nodes_formatted = "\n".join(mermaid_nodes)
512+
relationships_formatted = "\n".join(mermaid_relationships)
511513
return f"""graph TD
512514
%% Nodes
513-
{"\n".join(mermaid_nodes)}
515+
{nodes_formatted}
514516
515517
%% Relationships
516-
{"\n".join(mermaid_relationships)}
518+
{relationships_formatted}
517519
518520
{mermaid_styling}
519521
"""

0 commit comments

Comments
 (0)