Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

chore(lint): apply ruff format + isort to v1.5 PR-2 test files

Beenu Aroradbc23e995452
diff --git a/services/api/tests/api/v1/endpoints/test_alerts_confidence_contract.py b/services/api/tests/api/v1/endpoints/test_alerts_confidence_contract.py
index d912a7077..6225b4704 100644
--- a/services/api/tests/api/v1/endpoints/test_alerts_confidence_contract.py
+++ b/services/api/tests/api/v1/endpoints/test_alerts_confidence_contract.py
@@ -25,7 +25,6 @@ import uuid
from datetime import UTC, datetime
import pytest
-
from app.api.v1.endpoints.alerts import AlertResponse
@@ -232,6 +231,4 @@ def test_sla_default_targets_strict_severity_ordering() -> None:
order = ["critical", "high", "medium", "low", "info"]
for key in ("mttd_target", "mttr_target", "mttc_target"):
values = [DEFAULT_SLA_TARGETS[sev][key] for sev in order]
- assert values == sorted(values), (
- f"SLA {key} must widen across {order}: got {values}"
- )
+ assert values == sorted(values), f"SLA {key} must widen across {order}: got {values}"
diff --git a/services/api/tests/test_seed_demo_confidence_synth.py b/services/api/tests/test_seed_demo_confidence_synth.py
index 9614732a9..15f5a8d79 100644
--- a/services/api/tests/test_seed_demo_confidence_synth.py
+++ b/services/api/tests/test_seed_demo_confidence_synth.py
@@ -25,10 +25,8 @@ helper directly.
from __future__ import annotations
import pytest
-
from app.scripts.seed_demo import _synthesise_confidence
-
_REQUIRED_KEYS = {"factor", "label", "value", "contribution", "weight"}