mirror of https://github.com/astral-sh/ruff
Fix formatting of command
This commit is contained in:
parent
8898906ef4
commit
11e99655b8
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ def markdown_project_section(
|
|||
) -> list[str]:
|
||||
return markdown_details(
|
||||
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,
|
||||
)
|
||||
|
||||
|
|
@ -19,7 +19,9 @@ def markdown_project_section(
|
|||
def markdown_details(summary: str, preface: str, content: str | list[str]):
|
||||
lines = []
|
||||
lines.append(f"<details><summary>{summary}</summary>")
|
||||
lines.append("<p>")
|
||||
lines.append(preface)
|
||||
lines.append("</p>")
|
||||
lines.append("<p>")
|
||||
lines.append("")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue