Skip to content

Commit 04a4eb2

Browse files
committed
fix(prepare.py): poetry > uv in ensure_pre_commit_hooks
1 parent 7e95857 commit 04a4eb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prepare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ def is_pre_commit_installed():
6262

6363
try:
6464
subprocess.run(
65-
["poetry", "run", "pre-commit", "install", "--install-hooks", "-t", "pre-commit", "-t", "commit-msg"],
65+
["uv", "run", "pre-commit", "install", "--install-hooks", "-t", "pre-commit", "-t", "commit-msg"],
6666
check=True,
6767
text=True,
6868
)
6969
print("✅ Pre-commit hooks installed successfully.")
7070
except subprocess.CalledProcessError as e:
7171
print(
72-
f"❌ Error setting up pre-commit hooks:\n{e.stderr}\nPlease, setup it manually with `poetry run pre-commit install --install-hooks -t pre-commit -t commit-msg`"
72+
f"❌ Error setting up pre-commit hooks:\n{e.stderr}\nPlease, setup it manually with `uv run pre-commit install --install-hooks -t pre-commit -t commit-msg`"
7373
)
7474

7575

0 commit comments

Comments
 (0)