Skip to content

Commit

Permalink
round n+1 of code review
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Nov 21, 2023
1 parent 81e2c66 commit 080b5c2
Show file tree
Hide file tree
Showing 27 changed files with 5 additions and 78 deletions.
5 changes: 5 additions & 0 deletions apis/python/src/tiledbsoma/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@
from somacore import AxisColumnNames, AxisQuery, ExperimentAxisQuery
from somacore.options import ResultOrder

# TODO: once we no longer support Python 3.7, remove this and pin to pyarrow >= 14.0.1
# https://github.com/single-cell-data/TileDB-SOMA/issues/1926
# ruff: noqa
import pyarrow_hotfix

from ._collection import Collection
from ._constants import SOMA_JOINID
from ._dataframe import DataFrame
Expand Down
3 changes: 0 additions & 3 deletions apis/python/src/tiledbsoma/_arrow_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
import numpy.typing as npt
import pandas as pd
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import tiledb

_ARROW_TO_TDB_ATTR: Dict[Any, Union[str, TypeError]] = {
Expand Down
3 changes: 0 additions & 3 deletions apis/python/src/tiledbsoma/_common_nd_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

import numpy as np
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import somacore
import tiledb
from somacore import options
Expand Down
3 changes: 0 additions & 3 deletions apis/python/src/tiledbsoma/_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
import numpy as np
import pandas as pd
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import somacore
import tiledb
from somacore import options
Expand Down
3 changes: 0 additions & 3 deletions apis/python/src/tiledbsoma/_dense_nd_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
from typing import Optional, Tuple

import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import somacore
from somacore import options
from typing_extensions import Self
Expand Down
3 changes: 0 additions & 3 deletions apis/python/src/tiledbsoma/_read_iters.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
import numpy.typing as npt
import pandas as pd
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import somacore
from scipy import sparse
from somacore import options
Expand Down
3 changes: 0 additions & 3 deletions apis/python/src/tiledbsoma/_sparse_nd_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@

import numpy as np
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pyarrow.compute as pacomp
import somacore
import tiledb
Expand Down
3 changes: 0 additions & 3 deletions apis/python/src/tiledbsoma/_tiledb_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
from typing import Any, Dict, List, Optional, Sequence, Tuple

import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import tiledb
from somacore.options import ResultOrder, ResultOrderStr

Expand Down
3 changes: 0 additions & 3 deletions apis/python/src/tiledbsoma/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
import numpy.typing as npt
import pandas as pd
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
from somacore import types
from typing_extensions import Literal

Expand Down
3 changes: 0 additions & 3 deletions apis/python/src/tiledbsoma/experiment_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
import pandas as pd
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix

from ._types import NPNDArray, PDSeries


Expand Down
3 changes: 0 additions & 3 deletions apis/python/src/tiledbsoma/io/_registration/signatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
import attrs
import pandas as pd
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
from typing_extensions import Self

import tiledbsoma
Expand Down
3 changes: 0 additions & 3 deletions apis/python/src/tiledbsoma/io/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
import numpy as np
import pandas as pd
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import scipy.sparse as sp
import tiledb
from anndata._core import file_backing
Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
from typeguard.importhook import install_import_hook

# avoid typeguard by importing before calling install_import_hook
Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
import numpy as np
import pandas as pd
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pytest
from typing_extensions import Literal

Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/test_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
import numpy as np
import pandas as pd
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pytest
import somacore
import tiledb
Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/test_dataframe_index_columns.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import numpy as np
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pytest
import tiledb

Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/test_dense_nd_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

import numpy as np
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pytest
import tiledb

Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/test_experiment_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

import numpy as np
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pytest

import tiledbsoma as soma
Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/test_experiment_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
import numpy as np
import pandas as pd
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pytest
from scipy import sparse
from somacore import options
Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/test_io.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import numpy as np
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pytest
from scipy import sparse as sp

Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

import numpy as np
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pytest

import tiledbsoma as soma
Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/test_sparse_nd_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

import numpy as np
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pytest
import scipy.sparse as sparse
import tiledb
Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/test_tiledbobject.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pytest

import tiledbsoma as soma
Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/test_type_system.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import pathlib

import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pytest

import tiledbsoma as soma
Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/test_unicode.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import numpy as np
import pandas as pd
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pytest

import tiledbsoma as soma
Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/test_update_dataframes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
import numpy as np
import pandas as pd
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pytest

import tiledbsoma
Expand Down
3 changes: 0 additions & 3 deletions apis/python/tests/test_util_tiledb.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import pyarrow as pa

# ruff: noqa
import pyarrow_hotfix
import pytest
import tiledb

Expand Down

0 comments on commit 080b5c2

Please sign in to comment.