Run ruff within local venv (otherwise required system path which did not include the venv with uv tool install).

This commit is contained in:
2026-02-09 16:03:30 +00:00
parent ef6bce8f3f
commit b94608ffe3
+1 -1
View File
@@ -42,7 +42,7 @@ def ruff_sort_imports(files: list[Path], dry_run: bool = False) -> None:
return return
print("🔧 Ruff isort on modified files") print("🔧 Ruff isort on modified files")
subprocess.run( subprocess.run(
["ruff", "check", "--select", "I", "--fix", *py_files], [sys.executable, "-m", "ruff", "check", "--select", "I", "--fix", *py_files],
stdout=subprocess.DEVNULL, stdout=subprocess.DEVNULL,
) )