Skip to content

Commit 5cfec3c

Browse files
committed
Clear ruff F401 unused imports and Bandit B105 false positive on detector tag
1 parent 3a1af94 commit 5cfec3c

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

je_auto_control/utils/executor/action_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def _run_agent(goal: str,
488488
"""
489489
from je_auto_control.utils.agent import AgentBudget, AgentLoop
490490
from je_auto_control.utils.agent.backends import (
491-
AgentBackendError, AnthropicAgentBackend, OpenAIAgentBackend,
491+
AnthropicAgentBackend, OpenAIAgentBackend,
492492
)
493493
from je_auto_control.utils.tool_use_schema import (
494494
export_anthropic_tools, export_openai_tools,

je_auto_control/utils/redaction/policies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"""
1919
from __future__ import annotations
2020

21-
from dataclasses import dataclass, field
21+
from dataclasses import dataclass
2222
from typing import List, Optional, Tuple
2323

2424

@@ -27,7 +27,7 @@
2727
DETECTOR_CREDIT_CARD = "credit_card"
2828
DETECTOR_SSN = "ssn"
2929
DETECTOR_PHONE = "phone"
30-
DETECTOR_PASSWORD_FIELD = "password_field"
30+
DETECTOR_PASSWORD_FIELD = "password_field" # nosec B105 # detector tag, not a credential
3131

3232

3333
@dataclass(frozen=True)

je_auto_control/utils/redaction/rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from __future__ import annotations
1414

1515
import re
16-
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple
16+
from typing import Any, Callable, Dict, Iterable, List, Tuple
1717

1818
from je_auto_control.utils.redaction.policies import (
1919
DETECTOR_CREDIT_CARD, DETECTOR_EMAIL, DETECTOR_PASSWORD_FIELD,

0 commit comments

Comments
 (0)