Skip to content

Commit df0f159

Browse files
Add githook install make target
1 parent 1f1e1be commit df0f159

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,13 @@ install_git_hooks: ## Install project git hooks (pre-push)
286286
@chmod +x .git/hooks/pre-push
287287
@echo "$(GREEN)✅ pre-push hook installed.$(RESET)"
288288

289+
.PHONY: hooks-install
290+
hooks-install: ## Configure repo to use scripts/git-hooks via core.hooksPath
291+
@echo "$(YELLOW)🔧 Configuring git hooks path to scripts/git-hooks...$(RESET)"
292+
@chmod +x scripts/git-hooks/pre-push
293+
@git config --local core.hooksPath scripts/git-hooks
294+
@echo "$(GREEN)✅ core.hooksPath set to scripts/git-hooks; pre-push hook activated.$(RESET)"
295+
289296
########################################################
290297
# Version Management
291298
########################################################

src/setup_tui/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import argparse
22
import asyncio
3+
import sys
34

45
import questionary
56
from loguru import logger as log
@@ -229,6 +230,9 @@ def error(self, msg: object, *args: object, **kwargs: object) -> None:
229230

230231
show_manual_setup_screen()
231232

233+
# Restore loguru output after setup
234+
log.add(sys.stdout, level="INFO")
235+
232236

233237
def main(argv: list[str] | None = None) -> int:
234238
parser = argparse.ArgumentParser(description="Open Edison Setup TUI")

0 commit comments

Comments
 (0)