diff --git a/src/aipass/aipass/.claude/hooks/auto_fix_diagnostics.py b/src/aipass/aipass/.claude/hooks/auto_fix_diagnostics.py index 1ed056be..ecd7af31 100644 --- a/src/aipass/aipass/.claude/hooks/auto_fix_diagnostics.py +++ b/src/aipass/aipass/.claude/hooks/auto_fix_diagnostics.py @@ -337,10 +337,8 @@ def main(): # Collect all errors errors = [] - file_type = "" if file_path.endswith(".py"): - file_type = "Python" errors = run_python_checks(file_path) # Seedgo standards checklist @@ -358,7 +356,6 @@ def main(): save_diagnostics_state(file_path, ruff_lint_errors + type_errors) elif file_path.endswith(".json"): - file_type = "JSON" errors = run_json_checks(file_path) else: return diff --git a/src/aipass/aipass/.claude/hooks/pre_compact.py b/src/aipass/aipass/.claude/hooks/pre_compact.py index 8191e4b2..717ebb09 100644 --- a/src/aipass/aipass/.claude/hooks/pre_compact.py +++ b/src/aipass/aipass/.claude/hooks/pre_compact.py @@ -85,7 +85,7 @@ def _get_git_info(): text=True, timeout=5, ) - status = subprocess.run( + subprocess.run( ["git", "diff", "--stat", "--cached", "HEAD"], capture_output=True, text=True, diff --git a/src/aipass/aipass/.claude/hooks/subagent_stop_gate.py b/src/aipass/aipass/.claude/hooks/subagent_stop_gate.py index 4140f551..b903b885 100644 --- a/src/aipass/aipass/.claude/hooks/subagent_stop_gate.py +++ b/src/aipass/aipass/.claude/hooks/subagent_stop_gate.py @@ -79,7 +79,7 @@ def run_seedgo_checklist(file_path: str) -> list[str]: def main(): try: - input_data = json.load(sys.stdin) + json.load(sys.stdin) modified = get_modified_py_files() if not modified: diff --git a/src/aipass/aipass/apps/handlers/handoff_platform/__init__.py b/src/aipass/aipass/apps/handlers/handoff_platform/__init__.py index c996ff8e..684cd28d 100644 --- a/src/aipass/aipass/apps/handlers/handoff_platform/__init__.py +++ b/src/aipass/aipass/apps/handlers/handoff_platform/__init__.py @@ -83,7 +83,7 @@ def launch_terminal(cli: str, prompt: str, cwd: str, flag_variant: str = "defaul logger.info("[handoff_platform] opened %s in %s (cwd=%s)", term, cli, cwd) from aipass.cli.apps.modules import console - console.print(f"\n [green]✓[/green] Opened your agent in a new terminal window.") + console.print("\n [green]✓[/green] Opened your agent in a new terminal window.") console.print() return True except OSError as exc: @@ -119,7 +119,7 @@ def launch_tmux(cli: str, prompt: str, cwd: str, flag_variant: str = "default") logger.info("[handoff_platform] tmux session '%s' started in %s", _TMUX_SESSION, cwd) from aipass.cli.apps.modules import console - console.print(f"\n [green]✓[/green] Your agent is ready! Run this in your terminal:") + console.print("\n [green]✓[/green] Your agent is ready! Run this in your terminal:") console.print(f"\n [bold green]tmux attach -t {_TMUX_SESSION}[/bold green]\n") console.print() return True diff --git a/src/aipass/aipass/status/.claude/hooks/auto_fix_diagnostics.py b/src/aipass/aipass/status/.claude/hooks/auto_fix_diagnostics.py index 1ed056be..ecd7af31 100644 --- a/src/aipass/aipass/status/.claude/hooks/auto_fix_diagnostics.py +++ b/src/aipass/aipass/status/.claude/hooks/auto_fix_diagnostics.py @@ -337,10 +337,8 @@ def main(): # Collect all errors errors = [] - file_type = "" if file_path.endswith(".py"): - file_type = "Python" errors = run_python_checks(file_path) # Seedgo standards checklist @@ -358,7 +356,6 @@ def main(): save_diagnostics_state(file_path, ruff_lint_errors + type_errors) elif file_path.endswith(".json"): - file_type = "JSON" errors = run_json_checks(file_path) else: return diff --git a/src/aipass/aipass/status/.claude/hooks/pre_compact.py b/src/aipass/aipass/status/.claude/hooks/pre_compact.py index 8191e4b2..717ebb09 100644 --- a/src/aipass/aipass/status/.claude/hooks/pre_compact.py +++ b/src/aipass/aipass/status/.claude/hooks/pre_compact.py @@ -85,7 +85,7 @@ def _get_git_info(): text=True, timeout=5, ) - status = subprocess.run( + subprocess.run( ["git", "diff", "--stat", "--cached", "HEAD"], capture_output=True, text=True, diff --git a/src/aipass/aipass/status/.claude/hooks/subagent_stop_gate.py b/src/aipass/aipass/status/.claude/hooks/subagent_stop_gate.py index 4140f551..b903b885 100644 --- a/src/aipass/aipass/status/.claude/hooks/subagent_stop_gate.py +++ b/src/aipass/aipass/status/.claude/hooks/subagent_stop_gate.py @@ -79,7 +79,7 @@ def run_seedgo_checklist(file_path: str) -> list[str]: def main(): try: - input_data = json.load(sys.stdin) + json.load(sys.stdin) modified = get_modified_py_files() if not modified: diff --git a/src/aipass/devpulse/.claude/hooks/auto_fix_diagnostics.py b/src/aipass/devpulse/.claude/hooks/auto_fix_diagnostics.py index 1ed056be..ecd7af31 100644 --- a/src/aipass/devpulse/.claude/hooks/auto_fix_diagnostics.py +++ b/src/aipass/devpulse/.claude/hooks/auto_fix_diagnostics.py @@ -337,10 +337,8 @@ def main(): # Collect all errors errors = [] - file_type = "" if file_path.endswith(".py"): - file_type = "Python" errors = run_python_checks(file_path) # Seedgo standards checklist @@ -358,7 +356,6 @@ def main(): save_diagnostics_state(file_path, ruff_lint_errors + type_errors) elif file_path.endswith(".json"): - file_type = "JSON" errors = run_json_checks(file_path) else: return diff --git a/src/aipass/devpulse/.claude/hooks/pre_compact.py b/src/aipass/devpulse/.claude/hooks/pre_compact.py index 8191e4b2..717ebb09 100644 --- a/src/aipass/devpulse/.claude/hooks/pre_compact.py +++ b/src/aipass/devpulse/.claude/hooks/pre_compact.py @@ -85,7 +85,7 @@ def _get_git_info(): text=True, timeout=5, ) - status = subprocess.run( + subprocess.run( ["git", "diff", "--stat", "--cached", "HEAD"], capture_output=True, text=True, diff --git a/src/aipass/devpulse/.claude/hooks/subagent_stop_gate.py b/src/aipass/devpulse/.claude/hooks/subagent_stop_gate.py index 4140f551..b903b885 100644 --- a/src/aipass/devpulse/.claude/hooks/subagent_stop_gate.py +++ b/src/aipass/devpulse/.claude/hooks/subagent_stop_gate.py @@ -79,7 +79,7 @@ def run_seedgo_checklist(file_path: str) -> list[str]: def main(): try: - input_data = json.load(sys.stdin) + json.load(sys.stdin) modified = get_modified_py_files() if not modified: