fix: ruff 0.16.0 changes (#12158)

This commit is contained in:
Sebastian Husch Lee
2026-07-27 09:23:12 +02:00
committed by GitHub
parent 985707405c
commit 29fd21e50a
3 changed files with 5 additions and 3 deletions
@@ -36,7 +36,7 @@ class AzureOpenAIDocumentEmbedder(OpenAIDocumentEmbedder):
```
"""
def __init__( # noqa: PLR0913 (too-many-arguments)
def __init__( # noqa: PLR0913, PLR0917 (too-many-arguments, too-many-positional-arguments)
self,
azure_endpoint: str | None = None,
api_version: str | None = "2023-05-15",
@@ -39,7 +39,7 @@ class OpenAIDocumentEmbedder:
```
"""
def __init__( # noqa: PLR0913 (too-many-arguments)
def __init__( # noqa: PLR0913, PLR0917 (too-many-arguments, too-many-positional-arguments)
self,
api_key: Secret = Secret.from_env_var("OPENAI_API_KEY"),
model: str = "text-embedding-ada-002",
+3 -1
View File
@@ -207,7 +207,9 @@ module = ["haystack.testing.*"]
disallow_incomplete_defs = false
[tool.ruff]
exclude = ["e2e/**", "proposals"]
# "*.md": ruff formats Python code blocks inside Markdown; our docs (including the generated
# docs-website API reference) are not managed by ruff.
exclude = ["*.md", "e2e/**", "proposals"]
line-length = 120