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 B026 (#44100)

Asuka Minato4e79f6345fb0
diff --git a/api/.ruff.toml b/api/.ruff.toml
index 004d9828e8f..84da3779bb4 100644
--- a/api/.ruff.toml
+++ b/api/.ruff.toml
@@ -65,7 +65,6 @@ ignore = [
"FURB113", # repeated-append
"UP007", # non-pep604-annotation
"B007", # unused-loop-control-variable
- "B026", # star-arg-unpacking-after-keyword-arg
"B901", # allow return in yield
"B903", # class-as-data-structure
"B904", # raise-without-from-inside-except
diff --git a/api/libs/external_api.py b/api/libs/external_api.py
index 3f3ee4cae7a..6eed4d59b46 100644
--- a/api/libs/external_api.py
+++ b/api/libs/external_api.py
@@ -608,7 +608,7 @@ class ExternalApi(Api):
raise RuntimeError("flask-restx no longer exposes _should_use_fr_error_handler; update ExternalApi")
# manual separate call on construction and init_app to ensure configs in kwargs effective
- super().__init__(app=None, *args, **kwargs)
+ super().__init__(*args, app=None, **kwargs)
self.init_app(app, **kwargs)
register_external_error_handlers(self, body_formatter=error_body_formatter)