From c95f5ef9ef00328498755f26fdf639a6f825b341 Mon Sep 17 00:00:00 2001 From: AIOSAI Date: Thu, 7 May 2026 00:13:38 -0700 Subject: [PATCH] =?UTF-8?q?feat(system):=20fix(system):=20resolve=20all=20?= =?UTF-8?q?14=20ruff=20lint=20errors=20=E2=80=94=20unused=20variables=20in?= =?UTF-8?q?=20hooks=20+=20f-string=20placeholders=20in=20handoff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: @devpulse --- src/aipass/aipass/.claude/hooks/auto_fix_diagnostics.py | 3 --- src/aipass/aipass/.claude/hooks/pre_compact.py | 2 +- src/aipass/aipass/.claude/hooks/subagent_stop_gate.py | 2 +- src/aipass/aipass/apps/handlers/handoff_platform/__init__.py | 4 ++-- .../aipass/status/.claude/hooks/auto_fix_diagnostics.py | 3 --- src/aipass/aipass/status/.claude/hooks/pre_compact.py | 2 +- src/aipass/aipass/status/.claude/hooks/subagent_stop_gate.py | 2 +- src/aipass/devpulse/.claude/hooks/auto_fix_diagnostics.py | 3 --- src/aipass/devpulse/.claude/hooks/pre_compact.py | 2 +- src/aipass/devpulse/.claude/hooks/subagent_stop_gate.py | 2 +- 10 files changed, 8 insertions(+), 17 deletions(-) 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: