Skip to content

Commit 2ed355b

Browse files
committed
Resolve ruff errors for newer version but just ignore them
1 parent 237a5fb commit 2ed355b

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ ignore = [
8989
"FIX002", # Allow TODO lines - consider removing at some point
9090
"ISC001", # Recommended to ignore these rules when using with ruff-format
9191
"N812", # Allow importing functions as `F`
92-
"PD901", # Allow variable name df
9392
"PLR0913", # Allow many arguments in function definition
9493
"SLF001", # Allow accessing private members
9594
"TD002", # Do not require author names in TODO statements

python/datafusion/input/location.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def build_table(
4646
num_rows = 0 # Total number of rows in the file. Used for statistics
4747
columns = []
4848
if file_format == "parquet":
49-
import pyarrow.parquet as pq
49+
import pyarrow.parquet as pq # noqa: PLC0415
5050

5151
# Read the Parquet metadata
5252
metadata = pq.read_metadata(input_item)
@@ -61,7 +61,7 @@ def build_table(
6161
]
6262

6363
elif format == "csv":
64-
import csv
64+
import csv # noqa: PLC0415
6565

6666
# Consume header row and count number of rows for statistics.
6767
# TODO: Possibly makes sense to have the eager number of rows

python/datafusion/plan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
]
3333

3434

35-
class LogicalPlan:
35+
class LogicalPlan: # noqa: PLW1641
3636
"""Logical Plan.
3737
3838
A `LogicalPlan` is a node in a tree of relational operators (such as

python/tests/test_sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def test_register_parquet_partitioned(ctx, tmp_path, path_to_str, legacy_data_ty
188188
partition_data_type = "string" if legacy_data_type else pa.string()
189189

190190
if legacy_data_type:
191-
with pytest.warns(DeprecationWarning):
191+
with pytest.warns(DeprecationWarning): # noqa: PT030
192192
ctx.register_parquet(
193193
"datapp",
194194
dir_root,

0 commit comments

Comments
 (0)