feat(system): fix(system): resolve all 14 ruff lint errors — unused variables in hooks + f-string placeholders in handoff
Co-Authored-By: @devpulse <devpulse@aipass>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user