GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: Fix lint for vector search samples · Ginx172/python-aiplatform@23cac8a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • samples/model-builder/vector_search
    • vector_search_find_neighbors_sample.py
    • vector_search_match_sample.py
    • vector_search_read_index_datapoints_sample.py
    • vector_search_read_index_datapoints_sample_test.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎samples/model-builder/vector_search/vector_search_find_neighbors_sample.py‎

Copy file name to clipboardExpand all lines: samples/model-builder/vector_search/vector_search_find_neighbors_sample.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,3 @@ def vector_search_find_neighbors_jwt(
133133
return resp
134134

135135
# [END aiplatform_sdk_vector_search_find_neighbors_jwt_sample]
136-
Collapse file

‎samples/model-builder/vector_search/vector_search_match_sample.py‎

Copy file name to clipboardExpand all lines: samples/model-builder/vector_search/vector_search_match_sample.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,3 @@ def vector_search_match_jwt(
6464
return resp
6565

6666
# [END aiplatform_sdk_vector_search_match_jwt_sample]
67-
Collapse file

‎samples/model-builder/vector_search/vector_search_read_index_datapoints_sample.py‎

Copy file name to clipboardExpand all lines: samples/model-builder/vector_search/vector_search_read_index_datapoints_sample.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,3 @@ def vector_search_read_index_datapoints_jwt(
6060
return resp
6161

6262
# [END aiplatform_sdk_vector_search_read_index_datapoints_jwt_sample]
63-
Collapse file

‎samples/model-builder/vector_search/vector_search_read_index_datapoints_sample_test.py‎

Copy file name to clipboardExpand all lines: samples/model-builder/vector_search/vector_search_read_index_datapoints_sample_test.py
+9-8Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_vector_search_read_index_datapoints_jwt_sample(
2121
mock_index_endpoint_init,
2222
mock_index_endpoint_read_index_datapoints,
2323
):
24-
vector_search_read_index_datapoints_sample.vector_search_read_index_datapoints_jwt(
24+
vector_search_read_index_datapoints_sample.vector_search_read_index_datapoints_jwt(
2525
project=constants.PROJECT,
2626
location=constants.LOCATION,
2727
index_endpoint_name=constants.VECTOR_SEARCH_INDEX_ENDPOINT,
@@ -30,17 +30,18 @@ def test_vector_search_read_index_datapoints_jwt_sample(
3030
signed_jwt=constants.VECTOR_SEARCH_PRIVATE_ENDPOINT_SIGNED_JWT,
3131
)
3232

33-
# Check client initialization
34-
mock_sdk_init.assert_called_with(
33+
# Check client initialization
34+
mock_sdk_init.assert_called_with(
3535
project=constants.PROJECT, location=constants.LOCATION
3636
)
3737

38-
# Check index endpoint initialization with right index endpoint name
39-
mock_index_endpoint_init.assert_called_with(
40-
index_endpoint_name=constants.VECTOR_SEARCH_INDEX_ENDPOINT)
38+
# Check index endpoint initialization with right index endpoint name
39+
mock_index_endpoint_init.assert_called_with(
40+
index_endpoint_name=constants.VECTOR_SEARCH_INDEX_ENDPOINT
41+
)
4142

42-
# Check index_endpoint.match is called with right params.
43-
mock_index_endpoint_read_index_datapoints.assert_called_with(
43+
# Check index_endpoint.match is called with right params.
44+
mock_index_endpoint_read_index_datapoints.assert_called_with(
4445
deployed_index_id=constants.VECTOR_SEARCH_DEPLOYED_INDEX_ID,
4546
ids=constants.VECTOR_SEARCH_INDEX_DATAPOINT_IDS,
4647
signed_jwt=constants.VECTOR_SEARCH_PRIVATE_ENDPOINT_SIGNED_JWT,

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.