@@ -90,7 +90,7 @@ dependencies = [
9090 " pandas" , # AzureOCRDocumentConverter, CSVDocumentCleaner, CSVDocumentSplitter,
9191 # EvaluationRunResult, XLSXToDocument, and pipeline tests
9292
93- " transformers[torch,sentencepiece]>=4.51.1,<4.52" , # ExtractiveReader, TransformersSimilarityRanker, LocalWhisperTranscriber, HFGenerators...
93+ " transformers[torch, sentencepiece]>=4.51.1,<4.52" , # ExtractiveReader, TransformersSimilarityRanker, LocalWhisperTranscriber, HFGenerators...
9494 " huggingface_hub>=0.27.0" , # Hugging Face API Generators and Embedders
9595 " sentence-transformers>=4.1.0" , # Sentence Transformers Embedders, Rankers, and SASEvaluator
9696 " langdetect" , # TextLanguageRouter and DocumentLanguageClassifier
@@ -342,6 +342,10 @@ ignore = [
342342 " SIM108" , # if-else-block-instead-of-if-exp
343343 " SIM115" , # open-file-with-context-handler
344344 " SIM118" , # in-dict-keys
345+ # we re-export symbols for correct type checking
346+ # https://typing.python.org/en/latest/spec/distributing.html#import-conventions
347+ " PLC0414" , # useless-import-alias,
348+ " PLC0415" , # import-outside-top-level,
345349]
346350
347351[tool .ruff .lint .mccabe ]
0 commit comments