diff --git a/python/ruff-ecosystem/ruff_ecosystem/check.py b/python/ruff-ecosystem/ruff_ecosystem/check.py index ada0c92369..12a40c36ae 100644 --- a/python/ruff-ecosystem/ruff_ecosystem/check.py +++ b/python/ruff-ecosystem/ruff_ecosystem/check.py @@ -145,8 +145,8 @@ def summarize_check_result(result: Result) -> str: lines.extend( markdown_details( - summary="Rule change summary", - preface=f"{len(all_rule_changes.rule_codes())} rules changed", + summary=f"Changes by rule ({len(all_rule_changes.rule_codes())} rules affected)", + preface="", content=table_lines, ) ) diff --git a/python/ruff-ecosystem/ruff_ecosystem/markdown.py b/python/ruff-ecosystem/ruff_ecosystem/markdown.py index 9d1c765fa6..16e5117051 100644 --- a/python/ruff-ecosystem/ruff_ecosystem/markdown.py +++ b/python/ruff-ecosystem/ruff_ecosystem/markdown.py @@ -11,6 +11,7 @@ def markdown_project_section( ) -> list[str]: return markdown_details( summary=f'{project.repo.fullname} ({title})', + # Show the command used for the check preface="
ruff " + " ".join(options.to_cli_args()) + "", content=content, )