diff --git a/helpers/missing_ruff.py b/helpers/missing_ruff.py index 87bd2c46..52b0b663 100755 --- a/helpers/missing_ruff.py +++ b/helpers/missing_ruff.py @@ -58,6 +58,7 @@ def process_dir(path: Path) -> None: linter = json.loads(linter_txt) lint_info = {r["prefix"]: r["name"] for r in linter if r["prefix"] not in {"", "F"}} + lint_info = dict(sorted(lint_info.items())) selected_items = {k: v for k, v in lint_info.items() if k in selected} all_uns_items = {k: v for k, v in lint_info.items() if k not in selected} @@ -85,8 +86,8 @@ def print_each(items: dict[str, str]) -> Iterator[str]: ) uns = "\n".join(print_each(unselected_items)) + print(Columns([panel_sel, panel_lib, panel_spec])) if uns: - print(Columns([panel_sel, panel_lib, panel_spec])) print("[red]Unselected [dim](copy and paste ready)") print(uns)