Skip to content

Commit e866cb6

Browse files
authored
Merge pull request #14 from Point72/chore/ruff-0.16-compliance
Make lint pass under current ruff defaults
2 parents 0b21a1f + 9485178 commit e866cb6

49 files changed

Lines changed: 732 additions & 732 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

polars_io_tools/io_sources/__init__.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,18 @@
2424
from .util import *
2525

2626
if TYPE_CHECKING:
27-
from .delta_io import sink_delta as sink_delta
28-
from .join import filtered_join, filtered_join_asof
27+
# These names are provided at runtime by the `from .X import *` star imports above.
28+
# This block re-declares them so static analysis can resolve the targets passed to
29+
# `@functools.wraps(...)` on the PIOTOperations methods below. TC004 is suppressed
30+
# because ruff cannot see that the star imports already satisfy the runtime use.
31+
from .delta_io import sink_delta as sink_delta # noqa: TC004
32+
from .join import filtered_join, filtered_join_asof # noqa: TC004
2933
from .lazy_clickhouse_reader import scan_clickhouse
30-
from .lazy_clickhouse_writer import sink_clickhouse
31-
from .lazy_iter_rows import iter_rows
34+
from .lazy_clickhouse_writer import sink_clickhouse # noqa: TC004
35+
from .lazy_iter_rows import iter_rows # noqa: TC004
3236
from .multi_source import FilterSpec, multi_source
33-
from .ts import ts_with_columns
34-
from .util import filter_no_pushdown, with_columns_topo
37+
from .ts import ts_with_columns # noqa: TC004
38+
from .util import filter_no_pushdown, with_columns_topo # noqa: TC004
3539

3640
if TYPE_CHECKING:
3741
# We don't want to import `execute_on_ray` at the top level; however
@@ -70,9 +74,9 @@ def filtered_join(self, *args, **kwargs) -> pl.LazyFrame:
7074
return self._lf.join(*args, **kwargs)
7175
return filtered_join(self._lf, *args, **kwargs)
7276

73-
@functools.wraps(cache_parquet) # noqa: F405
77+
@functools.wraps(cache_parquet)
7478
def cache_parquet(self, *args, **kwargs) -> pl.LazyFrame:
75-
return cache_parquet(self._lf, *args, **kwargs) # noqa: F405
79+
return cache_parquet(self._lf, *args, **kwargs)
7680

7781
@functools.wraps(_execute_on_ray_proto)
7882
def execute_on_ray(self, *args, **kwargs) -> pl.LazyFrame:

0 commit comments

Comments
 (0)