From 11e99655b821a1e05db2ad759c0bc8126fb49b7b Mon Sep 17 00:00:00 2001 From: Zanie Date: Wed, 25 Oct 2023 17:59:59 -0500 Subject: [PATCH] Fix formatting of command --- python/ruff-ecosystem/ruff_ecosystem/check.py | 2 +- python/ruff-ecosystem/ruff_ecosystem/markdown.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/python/ruff-ecosystem/ruff_ecosystem/check.py b/python/ruff-ecosystem/ruff_ecosystem/check.py index 617514d1a0..ada0c92369 100644 --- a/python/ruff-ecosystem/ruff_ecosystem/check.py +++ b/python/ruff-ecosystem/ruff_ecosystem/check.py @@ -166,7 +166,7 @@ def add_permalink_to_diagnostic_line(repo: ClonedRepository, line: str) -> str: async def ruff_check( *, executable: Path, path: Path, name: str, options: CheckOptions -) -> tuple[str, Sequence[str]]: +) -> Sequence[str]: """Run the given ruff binary against the specified path.""" logger.debug(f"Checking {name} with {executable}") ruff_args = options.to_cli_args() diff --git a/python/ruff-ecosystem/ruff_ecosystem/markdown.py b/python/ruff-ecosystem/ruff_ecosystem/markdown.py index e1094c8595..9d1c765fa6 100644 --- a/python/ruff-ecosystem/ruff_ecosystem/markdown.py +++ b/python/ruff-ecosystem/ruff_ecosystem/markdown.py @@ -11,7 +11,7 @@ def markdown_project_section( ) -> list[str]: return markdown_details( summary=f'{project.repo.fullname} ({title})', - preface="`ruff " + " ".join(options.to_cli_args()) + "`", + preface="
ruff " + " ".join(options.to_cli_args()) + "
", content=content, ) @@ -19,7 +19,9 @@ def markdown_project_section( def markdown_details(summary: str, preface: str, content: str | list[str]): lines = [] lines.append(f"
{summary}") + lines.append("

") lines.append(preface) + lines.append("

") lines.append("

") lines.append("")