Skip to content

Commit bc822d4

Browse files
authored
Switch to Black 2025 and isort 6 (#2779) (#2789)
* Switch to Black 2025 code style * Run format with isort 6 (cherry picked from commit 68f8012)
1 parent 10a0a40 commit bc822d4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

elasticsearch/helpers/vectorstore/_sync/vectorstore.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
from elasticsearch import Elasticsearch
2323
from elasticsearch._version import __versionstr__ as lib_version
2424
from elasticsearch.helpers import BulkIndexError, bulk
25-
from elasticsearch.helpers.vectorstore import EmbeddingService, RetrievalStrategy
25+
from elasticsearch.helpers.vectorstore import (
26+
EmbeddingService,
27+
RetrievalStrategy,
28+
)
2629
from elasticsearch.helpers.vectorstore._utils import maximal_marginal_relevance
2730

2831
logger = logging.getLogger(__name__)

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_otel(session):
6767

6868
@nox.session()
6969
def format(session):
70-
session.install("black~=24.0", "isort", "flynt", "unasync>=0.6.0")
70+
session.install("black~=25.0", "isort~=6.0", "flynt", "unasync>=0.6.0", "jinja2")
7171

7272
session.run("python", "utils/run-unasync.py")
7373
session.run("isort", "--profile=black", *SOURCE_FILES)

0 commit comments

Comments
 (0)