Skip to content

Commit

Permalink
quickfix ruff warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
micmarty-deepsense committed Apr 2, 2024
1 parent 135f8af commit c578aa7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
1 change: 0 additions & 1 deletion test_unstructured/documents/test_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
RelativeCoordinateSystem,
)
from unstructured.documents.elements import (
UUID,
ConsolidationStrategy,
CoordinatesMetadata,
DataSourceMetadata,
Expand Down
3 changes: 1 addition & 2 deletions test_unstructured/documents/test_email_elements.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import uuid
from functools import partial

import pytest

from unstructured.cleaners.core import clean_prefix
from unstructured.cleaners.translate import translate_text
from unstructured.documents.email_elements import UUID, EmailElement, Name, NoID
from unstructured.documents.email_elements import EmailElement, Name, NoID


def test_text_id():
Expand Down
1 change: 0 additions & 1 deletion test_unstructured/partition/docx/test_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from unstructured.partition.common import convert_office_doc
from unstructured.partition.doc import partition_doc
from unstructured.partition.docx import partition_docx
from unstructured.staging.base import convert_to_dataframe


@pytest.fixture()
Expand Down
10 changes: 5 additions & 5 deletions test_unstructured/partition/pdf_image/test_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ def test_partition_pdf_always_keep_all_image_elements(
assert len(image_elements) == 3


@pytest.fixture
@pytest.fixture()
def mock_pdfwriter_with_duplicate_pages():
test_file = Path("example-docs") / "DA-1p.pdf"
original_pdf = PdfReader(test_file)
Expand All @@ -1248,7 +1248,7 @@ def mock_pdfwriter_with_duplicate_pages():
return writer


@pytest.fixture
@pytest.fixture()
def expected_element_ids_for_fast_strategy():
return [
"a2744e3d8b632d388a1f24c8806f1a6e",
Expand Down Expand Up @@ -1282,7 +1282,7 @@ def expected_element_ids_for_fast_strategy():
]


@pytest.fixture
@pytest.fixture()
def expected_element_ids_for_hi_res_strategy():
return [
"a2744e3d8b632d388a1f24c8806f1a6e",
Expand Down Expand Up @@ -1316,7 +1316,7 @@ def expected_element_ids_for_hi_res_strategy():
]


@pytest.fixture
@pytest.fixture()
def expected_element_ids_for_ocr_strategy():
return [
"a2744e3d8b632d388a1f24c8806f1a6e",
Expand Down Expand Up @@ -1348,7 +1348,7 @@ def expected_element_ids_for_ocr_strategy():
]


@pytest.fixture
@pytest.fixture()
def expected_ids(request):
return request.getfixturevalue(request.param)

Expand Down
2 changes: 1 addition & 1 deletion unstructured/documents/email_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime
from typing import Callable, List, Union

from unstructured.documents.elements import UUID, Element, NoID, Text
from unstructured.documents.elements import Element, NoID, Text


class NoDatestamp(ABC):
Expand Down

0 comments on commit c578aa7

Please sign in to comment.