Skip to content

Commit b3eb472

Browse files
committed
linting issues
1 parent f945e71 commit b3eb472

File tree

10 files changed

+24
-11
lines changed

10 files changed

+24
-11
lines changed

opteryx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def query_to_arrow(
183183
visibility_filters: Optional[Dict[str, Any]] = None,
184184
limit: int = None,
185185
**kwargs,
186-
) -> "pyarrow.Table":
186+
) -> "pyarrow.Table":
187187
"""
188188
Helper function to execute a query and return a pyarrow Table.
189189

opteryx/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ def main():
205205

206206
if __name__ == "__main__":
207207
import readline # pragma: no cover
208+
208209
try:
209210
main()
210211
except Exception as e:

opteryx/__version__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# THIS FILE IS AUTOMATICALLY UPDATED DURING THE BUILD PROCESS
22
# DO NOT EDIT THIS FILE DIRECTLY
33

4-
__build__ = 1688
4+
__build__ = 1690
55
__author__ = "@joocer"
6-
__version__ = "0.26.0-beta.1688"
6+
__version__ = "0.26.0-beta.1690"
77

88
# Store the version here so:
99
# 1) we don't load dependencies by storing it in __init__.py

opteryx/compiled/list_ops/list_in_string.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ init_searcher()
6767
cdef inline int fast_memcmp_short(const char *a, const char *b, size_t n):
6868
cdef uint64_t aval = 0, bval = 0
6969
cdef uint64_t mask
70-
70+
7171
if n == 0:
7272
return 0
7373
elif n <= 8:

opteryx/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def memory_allocation_calculation(allocation: Union[float, int]) -> int:
2828
Returns:
2929
int: Memory size in bytes to be allocated.
3030
"""
31+
3132
# Import psutil lazily to avoid paying the import cost at module import time.
3233
# Use a small helper so tests or callers that need the value will trigger the
3334
# import only when this function is called.

opteryx/connectors/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def get_dataset_schema(self, dataset):
8787

8888
import os
8989

90-
9190
# Lazy imports - connectors are only loaded when actually needed
9291
# This significantly improves module import time from ~500ms to ~130ms
9392

@@ -194,9 +193,10 @@ def register_store(prefix, connector, *, remove_prefix: bool = False, **kwargs):
194193
def register_df(name, frame):
195194
"""register a orso, pandas or Polars dataframe"""
196195
# Lazy import ArrowConnector
197-
from opteryx.connectors.arrow_connector import ArrowConnector
198196
import pyarrow
199197

198+
from opteryx.connectors.arrow_connector import ArrowConnector
199+
200200
# polars (maybe others) - the polars to arrow API is a mess
201201
if hasattr(frame, "_df"): # pragma: no cover
202202
frame = frame._df

opteryx/connectors/virtual_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"""
1313

1414
import datetime
15+
import importlib
1516
import typing
17+
from typing import Tuple
1618

1719
from orso.schema import RelationSchema
1820

19-
import importlib
20-
from typing import Tuple
2121
from opteryx.connectors.base.base_connector import BaseConnector
2222
from opteryx.connectors.base.base_connector import DatasetReader
2323
from opteryx.connectors.capabilities import Partitionable

opteryx/managers/cache/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,11 @@ def __getattr__(name: str):
5151
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
5252

5353

54-
__all__ = ("CacheManager", "get_cache_manager", "MemcachedCache", "RedisCache", "ValkeyCache", "NullCache")
54+
__all__ = (
55+
"CacheManager",
56+
"get_cache_manager",
57+
"MemcachedCache",
58+
"RedisCache",
59+
"ValkeyCache",
60+
"NullCache",
61+
)

opteryx/managers/expression/ops.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,11 @@ def _inner_filter_operations(arr, operator, value):
228228
matches = compute.match_like(arr, value).to_numpy(False).astype(dtype=numpy.bool_)
229229
return numpy.invert(matches)
230230
if operator == "ILike":
231-
return compute.match_like(arr, value, ignore_case=True).to_numpy(False).astype(dtype=numpy.bool_)
231+
return (
232+
compute.match_like(arr, value, ignore_case=True)
233+
.to_numpy(False)
234+
.astype(dtype=numpy.bool_)
235+
)
232236
if operator == "NotILike":
233237
matches = compute.match_like(arr, value, ignore_case=True)
234238
return numpy.invert(matches)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "opteryx"
3-
version = "0.26.0-beta.1688"
3+
version = "0.26.0-beta.1690"
44
description = "Query your data, where it lives"
55
requires-python = '>=3.11'
66
readme = {file = "README.md", content-type = "text/markdown"}

0 commit comments

Comments
 (0)