Skip to content

Commit

Permalink
Switch to Black 2025 and isort 6 (elastic#2779)
Browse files Browse the repository at this point in the history
* Switch to Black 2025 code style

* Run format with isort 6

(cherry picked from commit 68f8012)
  • Loading branch information
pquentin committed Feb 12, 2025
1 parent 10a0a40 commit a9c85a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion elasticsearch/helpers/vectorstore/_sync/vectorstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
from elasticsearch import Elasticsearch
from elasticsearch._version import __versionstr__ as lib_version
from elasticsearch.helpers import BulkIndexError, bulk
from elasticsearch.helpers.vectorstore import EmbeddingService, RetrievalStrategy
from elasticsearch.helpers.vectorstore import (
EmbeddingService,
RetrievalStrategy,
)
from elasticsearch.helpers.vectorstore._utils import maximal_marginal_relevance

logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_otel(session):

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

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

0 comments on commit a9c85a2

Please sign in to comment.