From 99b80cdd85fd9994f627afc1d49584fc8ec776b7 Mon Sep 17 00:00:00 2001 From: anakin87 Date: Mon, 20 Nov 2023 12:15:29 +0100 Subject: [PATCH] move ruff ignore error --- document_stores/elasticsearch/tests/test_document_store.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/document_stores/elasticsearch/tests/test_document_store.py b/document_stores/elasticsearch/tests/test_document_store.py index 6db73d899..1e7b3f115 100644 --- a/document_stores/elasticsearch/tests/test_document_store.py +++ b/document_stores/elasticsearch/tests/test_document_store.py @@ -2,8 +2,6 @@ # # SPDX-License-Identifier: Apache-2.0 -# ruff: noqa: S311 - import random from typing import List from unittest.mock import patch @@ -319,7 +317,10 @@ def test_embedding_retrieval_pagination(self, docstore: ElasticsearchDocumentSto Test that handling of pagination works as expected, when the matching documents are > 10. """ - docs = [Document(content=f"Document {i}", embedding=[random.random() for _ in range(4)]) for i in range(20)] + docs = [ + Document(content=f"Document {i}", embedding=[random.random() for _ in range(4)]) # noqa: S311 + for i in range(20) + ] docstore.write_documents(docs) results = docstore._embedding_retrieval(query_embedding=[0.1, 0.1, 0.1, 0.1], top_k=11, filters={})