Skip to content

armgit / dify

Public Imported from GitHub
0

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.

ci: enable Ruff E711 (#44088)

Asuka Minato3936e1ed0aa4
diff --git a/api/.ruff.toml b/api/.ruff.toml
index 333c520d1c7..55c1bdb3dbe 100644
--- a/api/.ruff.toml
+++ b/api/.ruff.toml
@@ -59,7 +59,6 @@ select = [
ignore = [
"E402", # module-import-not-at-top-of-file
- "E711", # none-comparison
"E712", # true-false-comparison
"E722", # bare-except
"F821", # undefined-name
diff --git a/api/tests/unit_tests/core/workflow/nodes/parameter_extractor/test_parameter_extractor_execution_behavior.py b/api/tests/unit_tests/core/workflow/nodes/parameter_extractor/test_parameter_extractor_execution_behavior.py
index 14fe53758a4..75fb10d6102 100644
--- a/api/tests/unit_tests/core/workflow/nodes/parameter_extractor/test_parameter_extractor_execution_behavior.py
+++ b/api/tests/unit_tests/core/workflow/nodes/parameter_extractor/test_parameter_extractor_execution_behavior.py
@@ -137,7 +137,7 @@ def test_function_calling_parameter_extractor(monkeypatch: pytest.MonkeyPatch) -
assert result.status == WorkflowNodeExecutionStatus.SUCCEEDED
assert result.outputs is not None
assert result.outputs.get("location") == "kawaii"
- assert result.outputs.get("__reason") == None
+ assert result.outputs.get("__reason") is None
@pytest.mark.usefixtures("setup_model_mock")
@@ -179,7 +179,7 @@ def test_instructions(monkeypatch: pytest.MonkeyPatch) -> None:
assert result.status == WorkflowNodeExecutionStatus.SUCCEEDED
assert result.outputs is not None
assert result.outputs.get("location") == "kawaii"
- assert result.outputs.get("__reason") == None
+ assert result.outputs.get("__reason") is None
process_data = result.process_data