Run ruff within local venv (otherwise required system path which did not include the venv with uv tool install).
This commit is contained in:
@@ -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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user