From cbc24a3de2f6590726474d70882d66f645b084f1 Mon Sep 17 00:00:00 2001 From: Zanie Date: Wed, 25 Oct 2023 14:28:36 -0500 Subject: [PATCH] Use `
` for check output

---
 python/ruff-ecosystem/ruff_ecosystem/check.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/python/ruff-ecosystem/ruff_ecosystem/check.py b/python/ruff-ecosystem/ruff_ecosystem/check.py
index 6d7334d782..40f48ebc89 100644
--- a/python/ruff-ecosystem/ruff_ecosystem/check.py
+++ b/python/ruff-ecosystem/ruff_ecosystem/check.py
@@ -96,10 +96,12 @@ def summarize_check_result(result: Result) -> str:
 
         diff = deduplicate_and_sort_diff(comparison.diff)
 
-        # Display the output diff
-        diff_lines = []
+        # Display the diff
+        # Wrap with `
` for code-styling with support for links
+        diff_lines = ["
"]
         for line in limit_rule_lines(diff, project.check_options.max_lines_per_rule):
             diff_lines.append(add_permalink_to_diagnostic_line(comparison.repo, line))
+        diff_lines.append("
") lines.extend( project_section(