Skip to content

Commit 1302f54

Browse files
committed
style(aicore/filtering): ruff format config.py
CI's uvx-installed ruff (latest) enforces a tighter line length than the project's pinned uv-run ruff. One line in load_from_env reformatted to wrap the Severity(_read_env_choice(...)) call across three lines, matching the surrounding violence/sexual/self_harm sites.
1 parent e24fef8 commit 1302f54

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/sap_cloud_sdk/aicore/filtering/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ def load_from_env() -> ContentFiltering | None:
8484
directions_raw = _read_env_str("AICORE_FILTER_DIRECTIONS", "input,output")
8585
directions = {d.strip() for d in directions_raw.split(",") if d.strip()}
8686

87-
hate = Severity(_read_env_choice("AICORE_FILTER_HATE", _VALID_SEVERITIES, default=4))
87+
hate = Severity(
88+
_read_env_choice("AICORE_FILTER_HATE", _VALID_SEVERITIES, default=4)
89+
)
8890
violence = Severity(
8991
_read_env_choice("AICORE_FILTER_VIOLENCE", _VALID_SEVERITIES, default=4)
9092
)

0 commit comments

Comments
 (0)