From b94608ffe326e365d7659f8bc16b928c43f2f1ca Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 9 Feb 2026 16:03:30 +0000 Subject: [PATCH] Run ruff within local venv (otherwise required system path which did not include the venv with uv tool install). --- fastapi_vue_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi_vue_setup.py b/fastapi_vue_setup.py index f7aa363..b9476ab 100644 --- a/fastapi_vue_setup.py +++ b/fastapi_vue_setup.py @@ -42,7 +42,7 @@ def ruff_sort_imports(files: list[Path], dry_run: bool = False) -> None: return print("🔧 Ruff isort on modified files") subprocess.run( - ["ruff", "check", "--select", "I", "--fix", *py_files], + [sys.executable, "-m", "ruff", "check", "--select", "I", "--fix", *py_files], stdout=subprocess.DEVNULL, )