Skip to content

Commit

Permalink
chore: enable F checks for ruff, fixup code
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrews committed Oct 29, 2024
1 parent 80d4c0b commit d48b0e4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions duckdb_engine/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import os
import re
import uuid
import warnings
from typing import (
TYPE_CHECKING,
Expand Down
2 changes: 1 addition & 1 deletion duckdb_engine/tests/test_pyarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ profile = "black"
target-version = "py38"

[tool.ruff.lint]
select = ["E", "I"]
select = ["E", "F", "I"]
ignore = ['E203', 'E501']

[build-system]
Expand Down

0 comments on commit d48b0e4

Please sign in to comment.