Skip to content

Commit c90e641

Browse files
committed
style: fix yapf formatting in _rules.py
1 parent 4167f0a commit c90e641

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

trpc_agent_sdk/tools/safety/_rules.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@
3636
r"(\.env|\.ssh|id_rsa|credentials?|token|secret|password|private[_-]?key)",
3737
re.IGNORECASE,
3838
)
39-
SENSITIVE_ENV_REFERENCE_RE = re.compile(
40-
r"\$(?:\{)?([A-Za-z_][A-Za-z0-9_]*(?:\})?)",
41-
)
39+
SENSITIVE_ENV_REFERENCE_RE = re.compile(r"\$(?:\{)?([A-Za-z_][A-Za-z0-9_]*(?:\})?)", )
4240

4341
PATH_LITERAL_RE = re.compile(
4442
r"(?<![A-Za-z0-9_])(?:"
@@ -554,8 +552,7 @@ def scan_text_patterns(script: str, policy: ToolSafetyPolicy, language: str) ->
554552
"Private key material appears in script content.",
555553
line=line_no,
556554
))
557-
findings.extend(
558-
_scan_denied_path_candidates(PATH_LITERAL_RE.findall(line), policy, line, language, line_no))
555+
findings.extend(_scan_denied_path_candidates(PATH_LITERAL_RE.findall(line), policy, line, language, line_no))
559556
for url in _extract_urls(line):
560557
finding = _network_finding(url, policy, line, line_no)
561558
if finding:

0 commit comments

Comments
 (0)