Fix formatting of command

This commit is contained in:
Zanie 2023-10-25 17:59:59 -05:00
parent 8898906ef4
commit 11e99655b8
2 changed files with 4 additions and 2 deletions

View File

@ -166,7 +166,7 @@ def add_permalink_to_diagnostic_line(repo: ClonedRepository, line: str) -> str:
async def ruff_check( async def ruff_check(
*, executable: Path, path: Path, name: str, options: CheckOptions *, executable: Path, path: Path, name: str, options: CheckOptions
) -> tuple[str, Sequence[str]]: ) -> Sequence[str]:
"""Run the given ruff binary against the specified path.""" """Run the given ruff binary against the specified path."""
logger.debug(f"Checking {name} with {executable}") logger.debug(f"Checking {name} with {executable}")
ruff_args = options.to_cli_args() ruff_args = options.to_cli_args()

View File

@ -11,7 +11,7 @@ def markdown_project_section(
) -> list[str]: ) -> list[str]:
return markdown_details( return markdown_details(
summary=f'<a href="{project.repo.url}">{project.repo.fullname}</a> ({title})', summary=f'<a href="{project.repo.url}">{project.repo.fullname}</a> ({title})',
preface="`ruff " + " ".join(options.to_cli_args()) + "`", preface="<pre>ruff " + " ".join(options.to_cli_args()) + "</pre>",
content=content, content=content,
) )
@ -19,7 +19,9 @@ def markdown_project_section(
def markdown_details(summary: str, preface: str, content: str | list[str]): def markdown_details(summary: str, preface: str, content: str | list[str]):
lines = [] lines = []
lines.append(f"<details><summary>{summary}</summary>") lines.append(f"<details><summary>{summary}</summary>")
lines.append("<p>")
lines.append(preface) lines.append(preface)
lines.append("</p>")
lines.append("<p>") lines.append("<p>")
lines.append("") lines.append("")