[syntax] Fix dependency_graph.py invalid quoting in DOT renderer #212

Closed
opened 2026-04-21 07:21:42 +00:00 by Rockachopa · 2 comments
Owner

Problem

scripts/dependency_graph.py does not parse because the DOT renderer uses unescaped quotes inside Python string literals.

Current failure:

File "scripts/dependency_graph.py", line 153
    lines.append("  edge [color="#4a4a6a"];")
                ^
SyntaxError: '(' was never closed

The adjacent line with fillcolor="#1a1a2e" has the same quoting problem.

Reproduction

cd /tmp/compounding-intelligence-676
python3 -m py_compile scripts/dependency_graph.py

Impact

  • dependency graph generation cannot run at all
  • Mermaid / DOT export path is broken before runtime

Acceptance Criteria

  • scripts/dependency_graph.py parses cleanly
  • python3 -m py_compile scripts/dependency_graph.py succeeds
  • DOT output still includes the intended styling
## Problem `scripts/dependency_graph.py` does not parse because the DOT renderer uses unescaped quotes inside Python string literals. Current failure: ``` File "scripts/dependency_graph.py", line 153 lines.append(" edge [color="#4a4a6a"];") ^ SyntaxError: '(' was never closed ``` The adjacent line with `fillcolor="#1a1a2e"` has the same quoting problem. ## Reproduction ```bash cd /tmp/compounding-intelligence-676 python3 -m py_compile scripts/dependency_graph.py ``` ## Impact - dependency graph generation cannot run at all - Mermaid / DOT export path is broken before runtime ## Acceptance Criteria - [ ] `scripts/dependency_graph.py` parses cleanly - [ ] `python3 -m py_compile scripts/dependency_graph.py` succeeds - [ ] DOT output still includes the intended styling
Author
Owner

PRs already exist for this issue:

  • #213: fix: escape quotes in DOT renderer node/edge strings (same branch I committed to)
  • #214: fix: escape DOT renderer quotes in dependency_graph.py

I committed the fix to the same branch as #213. Both PRs fix the same lines (152-153) by switching from double-quoted to single-quoted Python strings.

PRs already exist for this issue: - #213: fix: escape quotes in DOT renderer node/edge strings (same branch I committed to) - #214: fix: escape DOT renderer quotes in dependency_graph.py I committed the fix to the same branch as #213. Both PRs fix the same lines (152-153) by switching from double-quoted to single-quoted Python strings.
Author
Owner

Fixed in PR #220: #220

Fixed in PR #220: https://forge.alexanderwhitestone.com/Timmy_Foundation/compounding-intelligence/pulls/220
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/compounding-intelligence#212