Compare commits
2 Commits
fix/211-sy
...
fix/212-de
| Author | SHA1 | Date | |
|---|---|---|---|
| c28999f270 | |||
| 39905d92aa |
@@ -149,8 +149,8 @@ def to_dot(graph: dict) -> str:
|
|||||||
"""Generate DOT format output."""
|
"""Generate DOT format output."""
|
||||||
lines = ["digraph dependencies {"]
|
lines = ["digraph dependencies {"]
|
||||||
lines.append(" rankdir=LR;")
|
lines.append(" rankdir=LR;")
|
||||||
lines.append(" node [shape=box, style=filled, fillcolor="#1a1a2e", fontcolor="#e6edf3"];")
|
lines.append(' node [shape=box, style=filled, fillcolor="#1a1a2e", fontcolor="#e6edf3"];')
|
||||||
lines.append(" edge [color="#4a4a6a"];")
|
lines.append(' edge [color="#4a4a6a"];')
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
for repo, data in sorted(graph.items()):
|
for repo, data in sorted(graph.items()):
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ def find_slow_tests_by_scan(repo_path: str) -> List[Bottleneck]:
|
|||||||
(r"time\.sleep\((\d+(?:\.\d+)?)\)", "Contains time.sleep() — consider using mock or async wait"),
|
(r"time\.sleep\((\d+(?:\.\d+)?)\)", "Contains time.sleep() — consider using mock or async wait"),
|
||||||
(r"subprocess\.run\(.*timeout=(\d+)", "Subprocess with timeout — may block test"),
|
(r"subprocess\.run\(.*timeout=(\d+)", "Subprocess with timeout — may block test"),
|
||||||
(r"requests\.(get|post|put|delete)\(", "Real HTTP call — mock with responses or httpretty"),
|
(r"requests\.(get|post|put|delete)\(", "Real HTTP call — mock with responses or httpretty"),
|
||||||
(r"open\\([^)]*['\"]w['\"]", "File I/O in test - use tmp_path fixture"),
|
(r"open\([^)]*['"]w['"]", "File I/O in test — use tmp_path fixture"),
|
||||||
]
|
]
|
||||||
|
|
||||||
for root, dirs, files in os.walk(repo_path):
|
for root, dirs, files in os.walk(repo_path):
|
||||||
@@ -506,8 +506,8 @@ def format_markdown(report: PerfReport) -> str:
|
|||||||
lines.append(f"- {icon} {b.name}{loc} — ~{b.duration_s:.1f}s — {b.recommendation}")
|
lines.append(f"- {icon} {b.name}{loc} — ~{b.duration_s:.1f}s — {b.recommendation}")
|
||||||
lines.append(f"")
|
lines.append(f"")
|
||||||
|
|
||||||
return "\n".join(lines)
|
return "
|
||||||
|
".join(lines)
|
||||||
|
|
||||||
|
|
||||||
# ── Main ───────────────────────────────────────────────────────────
|
# ── Main ───────────────────────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user