This is an automated email from the ASF dual-hosted git repository.

timsaucer pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-python.git


The following commit(s) were added to refs/heads/main by this push:
     new d72f5605 Enable FA ruff lint (#1052)
d72f5605 is described below

commit d72f5605b3d523585d04857505793920f96242ba
Author: Tim Saucer <timsau...@gmail.com>
AuthorDate: Mon Mar 10 06:56:12 2025 -0400

    Enable FA ruff lint (#1052)
---
 examples/python-udwf.py   | 2 ++
 pyproject.toml            | 2 +-
 python/datafusion/io.py   | 2 ++
 python/tests/test_udaf.py | 2 ++
 python/tests/test_udwf.py | 2 ++
 5 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/examples/python-udwf.py b/examples/python-udwf.py
index 32f8fada..7d39dc1b 100644
--- a/examples/python-udwf.py
+++ b/examples/python-udwf.py
@@ -15,6 +15,8 @@
 # specific language governing permissions and limitations
 # under the License.
 
+from __future__ import annotations
+
 import datafusion
 import pyarrow as pa
 from datafusion import col, lit, udwf
diff --git a/pyproject.toml b/pyproject.toml
index f416e02a..d16a18aa 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -66,7 +66,7 @@ features = ["substrait"]
 
 # Enable docstring linting using the google style guide
 [tool.ruff.lint]
-select = ["E4", "E7", "E9", "F", "D", "W", "I"]
+select = ["E4", "E7", "E9", "F", "FA", "D", "W", "I"]
 
 [tool.ruff.lint.pydocstyle]
 convention = "google"
diff --git a/python/datafusion/io.py b/python/datafusion/io.py
index 7f3b77ef..3b626494 100644
--- a/python/datafusion/io.py
+++ b/python/datafusion/io.py
@@ -17,6 +17,8 @@
 
 """IO read functions using global context."""
 
+from __future__ import annotations
+
 import pathlib
 
 import pyarrow
diff --git a/python/tests/test_udaf.py b/python/tests/test_udaf.py
index e69c77d3..97cf81f3 100644
--- a/python/tests/test_udaf.py
+++ b/python/tests/test_udaf.py
@@ -15,6 +15,8 @@
 # specific language governing permissions and limitations
 # under the License.
 
+from __future__ import annotations
+
 from typing import List
 
 import pyarrow as pa
diff --git a/python/tests/test_udwf.py b/python/tests/test_udwf.py
index 0ffa0417..2fea34aa 100644
--- a/python/tests/test_udwf.py
+++ b/python/tests/test_udwf.py
@@ -15,6 +15,8 @@
 # specific language governing permissions and limitations
 # under the License.
 
+from __future__ import annotations
+
 import pyarrow as pa
 import pytest
 from datafusion import SessionContext, column, lit, udwf


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@datafusion.apache.org
For additional commands, e-mail: commits-h...@datafusion.apache.org

Reply via email to