mirror of https://github.com/astral-sh/ruff
Fix error rendering
This commit is contained in:
parent
6f593cac68
commit
a1bec32a7b
|
|
@ -194,7 +194,7 @@ def markdown_check_result(result: Result) -> str:
|
|||
lines.extend(
|
||||
markdown_project_section(
|
||||
title="error",
|
||||
content=f"```\n{error.strip()}```",
|
||||
content=f"```\n{error}```",
|
||||
options=project.check_options,
|
||||
project=project,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ def markdown_format_result(result: Result) -> str:
|
|||
lines.extend(
|
||||
markdown_project_section(
|
||||
title="error",
|
||||
content=str(error),
|
||||
content=f"```\n{error}```",
|
||||
options=project.format_options,
|
||||
project=project,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ if TYPE_CHECKING:
|
|||
|
||||
|
||||
def markdown_project_section(
|
||||
title: str, content: str | list[str], options: str, project: Project
|
||||
title: str, content: str | list[str], options: object, project: Project
|
||||
) -> list[str]:
|
||||
return markdown_details(
|
||||
summary=f'<a href="{project.repo.url}">{project.repo.fullname}</a> ({title})',
|
||||
|
|
|
|||
Loading…
Reference in New Issue