Skip to content

Commit 4139634

Browse files
committed
fix(safety): remove unused import and f-string without placeholders
flake8 fixes: - _policy.py: remove unused 'os' import (F401) - _scanner.py: replace f-string with regular string (F541) Signed-off-by: coder-mtj <coder-mtj@users.noreply.github.com>
1 parent eaa02fb commit 4139634

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

trpc_agent_sdk/tools/safety/_policy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from __future__ import annotations
1010

1111
import json
12-
import os
1312
from pathlib import Path
1413

1514
import yaml

trpc_agent_sdk/tools/safety/_scanner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def _scan_env(req: Request, policy: Policy) -> list[Finding]:
208208
DECISION_DENY,
209209
RISK_CRITICAL,
210210
"sensitive.secret_leak",
211-
[f"environment contains a likely secret"],
211+
["environment contains a likely secret"],
212212
"Remove API keys/tokens from environment variables.",
213213
))
214214
return findings

0 commit comments

Comments
 (0)