Skip to content

Commit 479bbd9

Browse files
chore: clean up code formatting
1 parent c128791 commit 479bbd9

File tree

5 files changed

+18
-20
lines changed

5 files changed

+18
-20
lines changed

pyproject.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -173,20 +173,20 @@ ignore-words-list = ["ans", "IST"]
173173

174174
[dependency-groups]
175175
dev = [
176-
"maturin>=1.8.1",
177-
"numpy>1.25.0;python_version<'3.14'",
178-
"numpy>=2.3.2;python_version>='3.14'",
179-
"pyarrow>=19.0.0",
180-
"pre-commit>=4.3.0",
181-
"pyyaml>=6.0.3",
182-
"pytest>=7.4.4",
183-
"pytest-asyncio>=0.23.3",
184-
"ruff>=0.9.1",
185-
"toml>=0.10.2",
186-
"pygithub==2.5.0",
187-
"codespell==2.4.1",
188-
"protobuf>=6.33.5",
189-
"substrait>=0.27.0",
176+
"maturin>=1.8.1",
177+
"numpy>1.25.0;python_version<'3.14'",
178+
"numpy>=2.3.2;python_version>='3.14'",
179+
"pyarrow>=19.0.0",
180+
"pre-commit>=4.3.0",
181+
"pyyaml>=6.0.3",
182+
"pytest>=7.4.4",
183+
"pytest-asyncio>=0.23.3",
184+
"ruff>=0.9.1",
185+
"toml>=0.10.2",
186+
"pygithub==2.5.0",
187+
"codespell==2.4.1",
188+
"protobuf>=6.33.5",
189+
"substrait>=0.27.0",
190190
]
191191
docs = [
192192
"sphinx>=7.1.2",
@@ -198,4 +198,4 @@ docs = [
198198
"pickleshare>=0.7.5",
199199
"sphinx-autoapi>=3.4.0",
200200
"setuptools>=75.3.0",
201-
]
201+
]

python/datafusion/substrait.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,4 +210,4 @@ def from_substrait_plan(ctx: SessionContext, plan: Plan) -> LogicalPlan:
210210

211211
@deprecated("Use `Consumer` instead.")
212212
class consumer(Consumer): # noqa: N801
213-
"""Use `Consumer` instead."""
213+
"""Use `Consumer` instead."""

python/tests/test_substrait.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ def test_plan_json_stability_and_validator_compatibility(ctx):
9696
json_format.Parse(json_str, proto_plan)
9797
actual_binary_plan = proto_plan.SerializeToString()
9898

99-
assert expected_binary_plan == actual_binary_plan
99+
assert expected_binary_plan == actual_binary_plan

src/errors.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ use std::fmt::Debug;
2222
use datafusion::arrow::error::ArrowError;
2323
use datafusion::error::DataFusionError as InnerDataFusionError;
2424
use prost::EncodeError;
25-
use prost::EncodeError;
2625
use pyo3::PyErr;
2726
use pyo3::exceptions::{PyException, PyValueError};
28-
use pyo3::exceptions::{PyException, PyValueError};
2927

3028
pub type PyDataFusionResult<T> = std::result::Result<T, PyDataFusionError>;
3129

src/substrait.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,4 @@ pub fn init_module(m: &Bound<'_, PyModule>) -> PyResult<()> {
170170
m.add_class::<PySubstraitProducer>()?;
171171
m.add_class::<PySubstraitSerializer>()?;
172172
Ok(())
173-
}
173+
}

0 commit comments

Comments
 (0)