Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion desloppify/app/commands/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _cmd_test_hermes() -> None:
("openrouter", "meta-llama/llama-4-scout"),
("openrouter", "mistralai/mistral-medium-3"),
]
test_provider, test_model = random.choice(test_models)
test_provider, test_model = random.choice(test_models) # nosec B311 — non-security use

# Switch to test model
print(f" Switching to: {test_provider}:{test_model}")
Expand Down
8 changes: 4 additions & 4 deletions desloppify/app/commands/helpers/transition_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ def _hermes_port() -> int:

def _hermes_get(path: str) -> dict:
"""GET a Hermes control API endpoint. Stdlib-only, no deps."""
url = f"http://127.0.0.1:{_hermes_port()}{path}"
url = f"http://127.0.0.1:{_hermes_port()}{path}" # nosec B310 — localhost only
req = _urlreq.Request(url, method="GET",
headers={"X-Hermes-Control": "1"})
try:
with _urlreq.urlopen(req, timeout=5) as resp:
with _urlreq.urlopen(req, timeout=5) as resp: # nosec B310 — localhost only
return _json.loads(resp.read())
except _urlerr.HTTPError as e:
return _json.loads(e.read())
Expand All @@ -57,13 +57,13 @@ def _hermes_get(path: str) -> dict:

def _hermes_send_message(text: str, mode: str = "queue") -> dict:
"""Send a message/command to the running Hermes agent. Stdlib-only, no deps."""
url = f"http://127.0.0.1:{_hermes_port()}/sessions/_any/message"
url = f"http://127.0.0.1:{_hermes_port()}/sessions/_any/message" # nosec B310 — localhost only
data = _json.dumps({"text": text, "mode": mode}).encode()
req = _urlreq.Request(url, data=data, method="POST",
headers={"Content-Type": "application/json",
"X-Hermes-Control": "1"})
try:
with _urlreq.urlopen(req, timeout=5) as resp:
with _urlreq.urlopen(req, timeout=5) as resp: # nosec B310 — localhost only
return _json.loads(resp.read())
except _urlerr.HTTPError as e:
return _json.loads(e.read())
Expand Down
2 changes: 1 addition & 1 deletion desloppify/app/commands/review/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

import json
import subprocess # nosec
import subprocess # nosec B404 — subprocess required for CLI runner
from collections.abc import Mapping
from hashlib import sha256
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion desloppify/app/commands/review/runner_parallel/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

import logging
import subprocess # nosec
import subprocess # nosec B404 — subprocess required for CLI runner
import time
from typing import Any

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

import subprocess # nosec
import subprocess # nosec B404 — subprocess required for CLI runner
import threading
import time
from contextlib import contextmanager
Expand Down
2 changes: 1 addition & 1 deletion desloppify/app/commands/review/runner_process_impl/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import json
import logging
import subprocess # nosec
import subprocess # nosec B404 — subprocess required for CLI runner
import threading
import time
from datetime import UTC, datetime
Expand Down
2 changes: 1 addition & 1 deletion desloppify/app/commands/runner/codex_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import os
import shutil
import subprocess
import subprocess # nosec B404 — subprocess required for CLI runner
import sys
from pathlib import Path

Expand Down
Loading