Skip to content

Commit a1cb749

Browse files
committed
x
1 parent f297139 commit a1cb749

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@ ignore-words-list = 'momento,collison,ned,foor,reworkd,parth,whats,aapply,mysogy
8787

8888
"langchain_postgres/utils/**/*.py" = [
8989
"E501",
90+
"T201", # Allow print
9091
]
9192

9293

9394
"examples/**/*.ipynb" = [
94-
"T201",
9595
"E501",
96+
"T201", # Allow print
9697
]
9798

9899

tests/unit_tests/fixtures/metadata_filtering_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
{"is_available": {"$and": True}},
243243
{"is_available": {"name": "{Wireless Headphones", "code": "EC002"}},
244244
{"my column": {"$and": True}},
245-
{"is_available": {"code": "WH001", "code": "EC002"}},
245+
{"is_available": {"code": "WH001"}},
246246
{"$and": {}},
247247
{"$and": []},
248248
{"$not": True},

tests/unit_tests/v2/test_pg_vectorstore_search.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,4 @@ def test_metadata_filter_negative_tests(
398398
self, vs_custom_filter_sync: PGVectorStore, test_filter: dict
399399
) -> None:
400400
with pytest.raises((ValueError, NotImplementedError)):
401-
vs_custom_filter_sync.similarity_search(
402-
"meow", k=5, filter=test_filter
403-
)
401+
vs_custom_filter_sync.similarity_search("meow", k=5, filter=test_filter)

0 commit comments

Comments
 (0)