Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[python] tiledbsoma.__init__.py: restore lint checks #3495

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions apis/python/src/tiledbsoma/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
import os
import sys


# Load native libraries. On wheel builds, we may have a shared library
# already linked. In this case, we can import directly
try:
Expand Down Expand Up @@ -133,6 +132,8 @@
except OSError:
# Otherwise try loading by name only.
ctypes.CDLL(libtiledbsoma_name)

# ruff: noqa: F401 (allow unused imports)
from somacore import (
AffineTransform,
Axis,
Expand All @@ -143,17 +144,13 @@
ScaleTransform,
UniformScaleTransform,
)
from ._query import (
ExperimentAxisQuery,
)
from somacore.options import ResultOrder

# This is important since we need to do the above dll/dylib/so business
# _before_ imports, but, ruff will tell us that imports need to be
# at the top of the file:
#
# ruff: noqa

# ruff: noqa: E402
from ._collection import Collection
from ._constants import SOMA_JOINID
from ._dataframe import DataFrame
Expand All @@ -169,15 +166,16 @@
from ._general_utilities import (
get_implementation,
get_implementation_version,
get_libtiledbsoma_core_version,
get_SOMA_version,
get_storage_engine,
show_package_versions,
get_libtiledbsoma_core_version,
)
from ._indexer import IntIndexer, tiledbsoma_build_index
from ._measurement import Measurement
from ._multiscale_image import MultiscaleImage
from ._point_cloud_dataframe import PointCloudDataFrame
from ._query import ExperimentAxisQuery
from ._scene import Scene
from ._sparse_nd_array import SparseNDArray, SparseNDArrayRead
from .options import SOMATileDBContext, TileDBCreateOptions, TileDBWriteOptions
Expand Down