Skip to content

Commit 868b2f9

Browse files
authored
Merge branch 'main' into feat/datadog-tracer/set-component-name-as-resource-name
2 parents bba3f8e + 67a8f12 commit 868b2f9

5 files changed

Lines changed: 7 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
args: [--markdown-linebreak-ext=md]
1818

1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.11.12
20+
rev: v0.12.0
2121
hooks:
2222
- id: ruff-check
2323
args: [ --fix ]

haystack/core/component/sockets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
SocketsIOType = Union[Type[InputSocket], Type[OutputSocket]]
1313

1414

15-
class Sockets:
15+
class Sockets: # noqa: PLW1641
1616
"""
1717
Represents the inputs or outputs of a `Component`.
1818

haystack/core/pipeline/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class ComponentPriority(IntEnum):
7171
BLOCKED = 5
7272

7373

74-
class PipelineBase:
74+
class PipelineBase: # noqa: PLW1641
7575
"""
7676
Components orchestration engine.
7777

haystack/dataclasses/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __call__(cls, *args, **kwargs):
4343

4444

4545
@dataclass
46-
class Document(metaclass=_BackwardCompatible):
46+
class Document(metaclass=_BackwardCompatible): # noqa: PLW1641
4747
"""
4848
Base data class containing some data to be queried.
4949

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ dependencies = [
8989
"pandas", # AzureOCRDocumentConverter, CSVDocumentCleaner, CSVDocumentSplitter,
9090
# EvaluationRunResult, XLSXToDocument, and pipeline tests
9191

92-
"transformers[torch,sentencepiece]>=4.51.1,<4.52", # ExtractiveReader, TransformersSimilarityRanker, LocalWhisperTranscriber, HFGenerators...
92+
"transformers[torch, sentencepiece]>=4.51.1,<4.52", # ExtractiveReader, TransformersSimilarityRanker, LocalWhisperTranscriber, HFGenerators...
9393
"huggingface_hub>=0.27.0", # Hugging Face API Generators and Embedders
9494
"sentence-transformers>=4.1.0", # Sentence Transformers Embedders, Rankers, and SASEvaluator
9595
"langdetect", # TextLanguageRouter and DocumentLanguageClassifier
@@ -333,7 +333,8 @@ ignore = [
333333
"SIM118", # in-dict-keys
334334
# we re-export symbols for correct type checking
335335
# https://typing.python.org/en/latest/spec/distributing.html#import-conventions
336-
"PLC0414", # useless-import-alias
336+
"PLC0414", # useless-import-alias,
337+
"PLC0415", # import-outside-top-level,
337338
]
338339

339340
[tool.ruff.lint.mccabe]

0 commit comments

Comments
 (0)