Skip to content

Commit

Permalink
ignore missing imports in pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Mar 6, 2024
1 parent d87769f commit 3520635
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions integrations/mongodb_atlas/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ exclude_lines = [
module = [
"haystack.*",
"haystack_integrations.*",
"mongodb_atlas.*",
"psycopg.*",
"pymongo.*",
"pytest.*"
]
ignore_missing_imports = true
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
from haystack.document_stores.types import DuplicatePolicy
from haystack.utils import Secret, deserialize_secrets_inplace
from haystack_integrations.document_stores.mongodb_atlas.filters import _normalize_filters
from pymongo import InsertOne, MongoClient, ReplaceOne, UpdateOne # type: ignore
from pymongo.driver_info import DriverInfo # type: ignore
from pymongo.errors import BulkWriteError # type: ignore
from pymongo import InsertOne, MongoClient, ReplaceOne, UpdateOne
from pymongo.driver_info import DriverInfo
from pymongo.errors import BulkWriteError

logger = logging.getLogger(__name__)

Expand Down
4 changes: 2 additions & 2 deletions integrations/mongodb_atlas/tests/test_document_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from haystack.utils import Secret
from haystack_integrations.document_stores.mongodb_atlas import MongoDBAtlasDocumentStore
from pandas import DataFrame
from pymongo import MongoClient # type: ignore
from pymongo.driver_info import DriverInfo # type: ignore
from pymongo import MongoClient
from pymongo.driver_info import DriverInfo


@pytest.mark.skipif(
Expand Down

0 comments on commit 3520635

Please sign in to comment.