Skip to content

Commit

Permalink
Fix pre-commit failures
Browse files Browse the repository at this point in the history
  • Loading branch information
benrules3 committed Jun 24, 2024
1 parent 184b0dd commit e43840c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
5 changes: 3 additions & 2 deletions compass_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
from os import getenv
from typing import Any, Callable, Dict, List, Optional, Union

from pydantic import BaseModel
from typing_extensions import TypedDict

from compass_sdk.constants import (
COHERE_API_ENV_VAR,
DEFAULT_COMMANDR_EXTRACTABLE_ATTRIBUTES,
Expand All @@ -16,8 +19,6 @@
METADATA_HEURISTICS_ATTRIBUTES,
SKIP_INFER_TABLE_TYPES,
)
from pydantic import BaseModel
from typing_extensions import TypedDict


class Logger:
Expand Down
11 changes: 6 additions & 5 deletions compass_sdk/compass.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
from typing import Dict, Iterator, List, Optional, Tuple, Union

import requests
from joblib import Parallel, delayed
from pydantic import BaseModel
from requests.exceptions import InvalidSchema
from tenacity import RetryError, retry, retry_if_not_exception_type, stop_after_attempt, wait_fixed
from tqdm import tqdm

from compass_sdk import (
BatchPutDocumentsInput,
Chunk,
Expand All @@ -25,11 +31,6 @@
DEFAULT_MAX_RETRIES,
DEFAULT_SLEEP_RETRY_SECONDS,
)
from joblib import Parallel, delayed
from pydantic import BaseModel
from requests.exceptions import InvalidSchema
from tenacity import RetryError, retry, retry_if_not_exception_type, stop_after_attempt, wait_fixed
from tqdm import tqdm


@dataclass
Expand Down
1 change: 1 addition & 0 deletions compass_sdk/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import Any, Callable, Dict, Iterable, List, Optional, Union

import requests

from compass_sdk import (
BatchProcessFilesParameters,
CompassDocument,
Expand Down
3 changes: 2 additions & 1 deletion compass_sdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
from typing import Callable, Iterable, Iterator, List, Optional, TypeVar

import fsspec
from compass_sdk import CompassDocument, CompassDocumentMetadata, CompassSdkStage
from fsspec import AbstractFileSystem

from compass_sdk import CompassDocument, CompassDocumentMetadata, CompassSdkStage

T = TypeVar("T")
U = TypeVar("U")

Expand Down
1 change: 1 addition & 0 deletions tests/test_parser_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from typing import List

import pytest

from compass_sdk import (
CompassDocumentMetadata,
MetadataConfig,
Expand Down

0 comments on commit e43840c

Please sign in to comment.