Skip to content

Commit

Permalink
chore: do not fail startup on pre-commit error
Browse files Browse the repository at this point in the history
  • Loading branch information
dantetemplar committed Nov 19, 2024
1 parent ba8cf66 commit ef4fa88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ def is_pre_commit_installed():
)
print("✅ Pre-commit hooks installed successfully.")
except subprocess.CalledProcessError as e:
print(f"❌ Error setting up pre-commit hooks:\n{e.stderr}")
sys.exit(1)
print(
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`"
)


ensure_settings_file()
Expand Down

0 comments on commit ef4fa88

Please sign in to comment.