Skip to content

Commit 2d6219a

Browse files
committed
fix: PLC0415
1 parent 7ec6b0d commit 2d6219a

File tree

9 files changed

+11
-6
lines changed

9 files changed

+11
-6
lines changed

awswrangler/_distributed.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def register(cls, name: EngineLiteral | None = None) -> None:
117117
cls._registry.clear()
118118

119119
if engine_name == EngineEnum.RAY.value:
120-
from awswrangler.distributed.ray._register import register_ray
120+
from awswrangler.distributed.ray._register import register_ray # noqa: PLC0415
121121

122122
register_ray()
123123

@@ -127,7 +127,7 @@ def initialize(cls, name: EngineLiteral | None = None) -> None:
127127
with cls._lock:
128128
engine_name = name or cls.get_installed().value
129129
if engine_name == EngineEnum.RAY.value:
130-
from awswrangler.distributed.ray import initialize_ray
130+
from awswrangler.distributed.ray import initialize_ray # noqa: PLC0415
131131

132132
initialize_ray()
133133
cls._initialized_engine = EngineEnum[engine_name.upper()]
@@ -187,7 +187,7 @@ def set(cls, name: EngineLiteral) -> None:
187187

188188
def _reload() -> None:
189189
"""Reload Pandas proxy module."""
190-
import awswrangler.pandas
190+
import awswrangler.pandas # noqa: PLC0415
191191

192192
reload(awswrangler.pandas)
193193

awswrangler/distributed/ray/_register.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Ray and Modin registered methods (PRIVATE)."""
2+
# ruff: noqa: PLC0415
23

34
from awswrangler._data_types import pyarrow_types_from_pandas
45
from awswrangler._distributed import MemoryFormatEnum, engine, memory_format

awswrangler/distributed/ray/datasources/arrow_csv_datasource.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Ray ArrowCSVDatasource Module."""
2+
# ruff: noqa: PLC0415
23

34
from __future__ import annotations
45

awswrangler/distributed/ray/datasources/arrow_orc_datasink.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Ray PandasTextDatasink Module."""
2+
# ruff: noqa: PLC0415
23

34
from __future__ import annotations
45

awswrangler/distributed/ray/datasources/arrow_orc_datasource.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Ray ArrowCSVDatasource Module."""
2+
# ruff: noqa: PLC0415
23

34
from __future__ import annotations
45

awswrangler/distributed/ray/datasources/arrow_parquet_datasource.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
and customized to ensure compatibility with AWS SDK for pandas behavior. Changes from the original implementation,
66
are documented in the comments and marked with (AWS SDK for pandas) prefix.
77
"""
8+
# ruff: noqa: PLC0415
89

910
from __future__ import annotations
1011

awswrangler/opensearch/_write.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _file_line_generator(path: str, is_json: bool = False) -> Generator[Any, Non
117117

118118
@_utils.check_optional_dependency(jsonpath_ng, "jsonpath_ng")
119119
def _get_documents_w_json_path(documents: list[Mapping[str, Any]], json_path: str) -> list[Any]:
120-
from jsonpath_ng.exceptions import JsonPathParserError
120+
from jsonpath_ng.exceptions import JsonPathParserError # noqa: PLC0415
121121

122122
try:
123123
jsonpath_expression = jsonpath_ng.parse(json_path)

awswrangler/s3/_read_orc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848

4949
def _pyarrow_orc_file_wrapper(source: Any) -> "ORCFile":
50-
from pyarrow.orc import ORCFile
50+
from pyarrow.orc import ORCFile # noqa: PLC0415
5151

5252
try:
5353
return ORCFile(source=source)

awswrangler/s3/_write_orc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _new_writer(
5757
s3_additional_kwargs: dict[str, str] | None,
5858
use_threads: bool | int,
5959
) -> Iterator["ORCWriter"]:
60-
from pyarrow.orc import ORCWriter
60+
from pyarrow.orc import ORCWriter # noqa: PLC0415
6161

6262
writer: "ORCWriter" | None = None
6363
if not pyarrow_additional_kwargs:

0 commit comments

Comments
 (0)