refactor(safety): apply consistent formatting across services and tests
Improved code readability and uniformity by standardizing line breaks, indentation, and inline conditions across safety-related services, models, and tests, including content filters, validation rules, and emergency controls.
This commit is contained in:
@@ -113,7 +113,9 @@ class ActionValidator:
|
||||
self._rules.append(rule)
|
||||
# Re-sort by priority (higher first)
|
||||
self._rules.sort(key=lambda r: r.priority, reverse=True)
|
||||
logger.debug("Added validation rule: %s (priority %d)", rule.name, rule.priority)
|
||||
logger.debug(
|
||||
"Added validation rule: %s (priority %d)", rule.name, rule.priority
|
||||
)
|
||||
|
||||
def remove_rule(self, rule_id: str) -> bool:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user