(module: Path)
| 19 | |
| 20 | |
| 21 | def _render_call_graph(module: Path) -> None: |
| 22 | buffer = StringIO() |
| 23 | code2flow(str(module), buffer) |
| 24 | try: |
| 25 | svg = subprocess.check_output(["dot", "-Tsvg"], input=buffer.getvalue(), text=True) # noqa: S607 |
| 26 | except subprocess.CalledProcessError: |
| 27 | # The subprocess dies with SIGSEGV in GHA... |
| 28 | return |
| 29 | if 'class="node"' not in svg: |
| 30 | print() |
| 31 | else: |
| 32 | print(f'<div class="interactiveSVG code2flow">{svg}</div>') |
| 33 | |
| 34 | |
| 35 | def _comment_block(module: Path) -> str: |
no outgoing calls
no test coverage detected
searching dependent graphs…