Add YAPF style + ignore, and format tracked Python files

This commit is contained in:
2025-12-29 18:42:02 -08:00
parent c019c00aed
commit 507946a3e4
108 changed files with 11664 additions and 6494 deletions

View File

@@ -10,7 +10,6 @@ from cmdlet._shared import Cmdlet, CmdletArg
from SYS.logger import log
import pipeline as ctx
CMDLET = Cmdlet(
name=".out-table",
summary="Save the current result table to an SVG file.",
@@ -32,7 +31,6 @@ CMDLET = Cmdlet(
],
)
_WINDOWS_RESERVED_NAMES = {
"con",
"prn",
@@ -112,7 +110,8 @@ def _get_active_table(piped_result: Any) -> Optional[Any]:
if piped_result.__class__.__name__ == "ResultTable":
return piped_result
return ctx.get_display_table() or ctx.get_current_stage_table() or ctx.get_last_result_table()
return ctx.get_display_table() or ctx.get_current_stage_table(
) or ctx.get_last_result_table()
def _run(piped_result: Any, args: Sequence[str], config: Dict[str, Any]) -> int:
@@ -123,7 +122,8 @@ def _run(piped_result: Any, args: Sequence[str], config: Dict[str, Any]) -> int:
i = 0
while i < len(args_list):
low = args_list[i].strip().lower()
if low in {"-path", "--path"} and i + 1 < len(args_list):
if low in {"-path",
"--path"} and i + 1 < len(args_list):
path_arg = args_list[i + 1]
i += 2
continue