Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
[FIX]Ruff: lint errors for E731 (#13018)
Miki Watanabe2e467cbc7451
diff --git a/api/.ruff.toml b/api/.ruff.tomlindex dbc0f123df5..f058731ada5 100644--- a/api/.ruff.toml+++ b/api/.ruff.toml@@ -45,7 +45,6 @@ ignore = ["E712", # true-false-comparison"E721", # type-comparison"E722", # bare-except- "E731", # lambda-assignment"F821", # undefined-name"F841", # unused-variable"FURB113", # repeated-appenddiff --git a/api/models/workflow.py b/api/models/workflow.pyindex 25111594f95..fdca4795b2b 100644--- a/api/models/workflow.py+++ b/api/models/workflow.py@@ -256,11 +256,10 @@ class Workflow(Base):# decrypt secret variables valuedef decrypt_func(var):- return (- var.model_copy(update={"value": encrypter.decrypt_token(tenant_id=tenant_id, token=var.value)})- if isinstance(var, SecretVariable)- else var- )+ if isinstance(var, SecretVariable):+ return var.model_copy(update={"value": encrypter.decrypt_token(tenant_id=tenant_id, token=var.value)})+ else:+ return varresults = list(map(decrypt_func, results))return results@@ -286,11 +285,10 @@ class Workflow(Base):# encrypt secret variables valuedef encrypt_func(var):- return (- var.model_copy(update={"value": encrypter.encrypt_token(tenant_id=tenant_id, token=var.value)})- if isinstance(var, SecretVariable)- else var- )+ if isinstance(var, SecretVariable):+ return var.model_copy(update={"value": encrypter.encrypt_token(tenant_id=tenant_id, token=var.value)})+ else:+ return varencrypted_vars = list(map(encrypt_func, value))environment_variables_json = json.dumps(