mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-10-12 02:12:50 +00:00
fix: ruff 0.16.0 changes (#12158)
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user