Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 14, 2025
1 parent 1d57e64 commit 0576631
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion docs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ def search(self, query_text, release):
),
code_matched=SearchHeadline(
KeyTextTransform("code_references_search", "metadata"),
SearchQuery(query_text, config="simple", search_type="websearch"),
SearchQuery(
query_text, config="simple", search_type="websearch"
),
start_sel=START_SEL,
stop_sel=STOP_SEL,
config="simple",
Expand Down
11 changes: 7 additions & 4 deletions docs/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,14 +462,17 @@ def test_code_entities(self):
[
(
{
'Layer': 'django.contrib.gis.gdal.Layer',
'Migration.initial': 'django.db.migrations.Migration.initial',
'db_for_write': 'db_for_write'
"Layer": "django.contrib.gis.gdal.Layer",
"Migration.initial": "django.db.migrations.Migration.initial",
"db_for_write": "db_for_write",
},
"Layer Migration.initial db_for_write",
)
],
transform=lambda doc: (doc.metadata["code_references"], doc.metadata["code_references_search"]),
transform=lambda doc: (
doc.metadata["code_references"],
doc.metadata["code_references_search"],
),
)

def test_empty_documents(self):
Expand Down

0 comments on commit 0576631

Please sign in to comment.