Skip to content

Commit 107064c

Browse files
authored
fix: helper should sort and printout was missing sometimes (#674)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent c9f31ba commit 107064c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

helpers/missing_ruff.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def process_dir(path: Path) -> None:
5858
linter = json.loads(linter_txt)
5959

6060
lint_info = {r["prefix"]: r["name"] for r in linter if r["prefix"] not in {"", "F"}}
61+
lint_info = dict(sorted(lint_info.items()))
6162

6263
selected_items = {k: v for k, v in lint_info.items() if k in selected}
6364
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]:
8586
)
8687
uns = "\n".join(print_each(unselected_items))
8788

89+
print(Columns([panel_sel, panel_lib, panel_spec]))
8890
if uns:
89-
print(Columns([panel_sel, panel_lib, panel_spec]))
9091
print("[red]Unselected [dim](copy and paste ready)")
9192
print(uns)
9293

0 commit comments

Comments
 (0)