Skip to content

Commit 29fd21e

Browse files
authored
fix: ruff 0.16.0 changes (#12158)
1 parent 9857074 commit 29fd21e

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

haystack/components/embedders/azure_document_embedder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AzureOpenAIDocumentEmbedder(OpenAIDocumentEmbedder):
3636
```
3737
"""
3838

39-
def __init__( # noqa: PLR0913 (too-many-arguments)
39+
def __init__( # noqa: PLR0913, PLR0917 (too-many-arguments, too-many-positional-arguments)
4040
self,
4141
azure_endpoint: str | None = None,
4242
api_version: str | None = "2023-05-15",

haystack/components/embedders/openai_document_embedder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class OpenAIDocumentEmbedder:
3939
```
4040
"""
4141

42-
def __init__( # noqa: PLR0913 (too-many-arguments)
42+
def __init__( # noqa: PLR0913, PLR0917 (too-many-arguments, too-many-positional-arguments)
4343
self,
4444
api_key: Secret = Secret.from_env_var("OPENAI_API_KEY"),
4545
model: str = "text-embedding-ada-002",

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ module = ["haystack.testing.*"]
207207
disallow_incomplete_defs = false
208208

209209
[tool.ruff]
210-
exclude = ["e2e/**", "proposals"]
210+
# "*.md": ruff formats Python code blocks inside Markdown; our docs (including the generated
211+
# docs-website API reference) are not managed by ruff.
212+
exclude = ["*.md", "e2e/**", "proposals"]
211213
line-length = 120
212214

213215

0 commit comments

Comments
 (0)