style: format with black and fix ruff SIM117 warnings

- Merge nested with statements in test_project_root.py
- Reformat multi-line calls in test_cli.py and update.py
This commit is contained in:
Zhengshou Lai
2026-05-27 11:23:13 +08:00
parent 7c5fa8ae24
commit 480ee311f2
3 changed files with 30 additions and 19 deletions
+3 -1
View File
@@ -43,7 +43,9 @@ def update_cmd() -> None:
if makefile.is_file():
rc = _run_make_install(root)
if rc != 0:
console.print("[yellow]make install failed, trying pip -e…[/yellow]")
console.print(
"[yellow]make install failed, trying pip -e…[/yellow]"
)
rc = _run_pip_editable(root)
else:
rc = _run_pip_editable(root)