diff --git a/duckdb_engine/__init__.py b/duckdb_engine/__init__.py index 98ac9681..2f44880e 100644 --- a/duckdb_engine/__init__.py +++ b/duckdb_engine/__init__.py @@ -1,6 +1,4 @@ -import os import re -import uuid import warnings from typing import ( TYPE_CHECKING, diff --git a/duckdb_engine/tests/test_pyarrow.py b/duckdb_engine/tests/test_pyarrow.py index ac457570..c320e9e7 100644 --- a/duckdb_engine/tests/test_pyarrow.py +++ b/duckdb_engine/tests/test_pyarrow.py @@ -4,7 +4,7 @@ def test_fetch_arrow() -> None: - engine = create_engine(f"duckdb:///:memory:") + engine = create_engine("duckdb:///:memory:") with engine.begin() as con: con.execute(text("CREATE TABLE tbl (label VARCHAR, value DOUBLE)")) con.execute( diff --git a/noxfile.py b/noxfile.py index 36c61160..1587b662 100644 --- a/noxfile.py +++ b/noxfile.py @@ -38,7 +38,7 @@ def nightly(session: nox.Session) -> None: def tests_core(session: nox.Session, duckdb: str, sqlalchemy: str) -> None: with group(f"{session.name} - Install"): poetry(session) - operator = "==" if sqlalchemy.count(".") == 2 else f"~=" + operator = "==" if sqlalchemy.count(".") == 2 else "~=" session.install(f"sqlalchemy{operator}{sqlalchemy}") if duckdb == "master": session.install("duckdb", "--pre", "-U") diff --git a/pyproject.toml b/pyproject.toml index a9b80711..48b7da60 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,7 @@ profile = "black" target-version = "py38" [tool.ruff.lint] -select = ["E", "I"] +select = ["E", "F", "I"] ignore = ['E203', 'E501'] [build-system]