Skip to content

Commit d72f560

Browse files
authored
Enable FA ruff lint (#1052)
1 parent 973d7ec commit d72f560

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

examples/python-udwf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18+
from __future__ import annotations
19+
1820
import datafusion
1921
import pyarrow as pa
2022
from datafusion import col, lit, udwf

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ features = ["substrait"]
6666

6767
# Enable docstring linting using the google style guide
6868
[tool.ruff.lint]
69-
select = ["E4", "E7", "E9", "F", "D", "W", "I"]
69+
select = ["E4", "E7", "E9", "F", "FA", "D", "W", "I"]
7070

7171
[tool.ruff.lint.pydocstyle]
7272
convention = "google"

python/datafusion/io.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
"""IO read functions using global context."""
1919

20+
from __future__ import annotations
21+
2022
import pathlib
2123

2224
import pyarrow

python/tests/test_udaf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18+
from __future__ import annotations
19+
1820
from typing import List
1921

2022
import pyarrow as pa

python/tests/test_udwf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18+
from __future__ import annotations
19+
1820
import pyarrow as pa
1921
import pytest
2022
from datafusion import SessionContext, column, lit, udwf

0 commit comments

Comments
 (0)