Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and Mause committed Apr 16, 2024
1 parent 4a3392a commit 755b598
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions duckdb_engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@

import duckdb
import sqlalchemy
from sqlalchemy import pool, text
from sqlalchemy import pool, text, util
from sqlalchemy import types as sqltypes
from sqlalchemy import util
from sqlalchemy.dialects.postgresql import UUID
from sqlalchemy.dialects.postgresql.base import (
PGDialect,
Expand Down
2 changes: 1 addition & 1 deletion duckdb_engine/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_core_config() -> Set[str]:
.fetchall()
)
# special case for motherduck here - they accept this config at extension load time
return {name for name, in rows} | {"motherduck_token"}
return {name for (name,) in rows} | {"motherduck_token"}


def apply_config(
Expand Down
2 changes: 2 additions & 0 deletions duckdb_engine/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ class UInt8(Integer):

class UTinyInteger(Integer):
"AKA UInt1"

name = "UTinyInt"
# UTINYINT - 0 255


class TinyInteger(Integer):
"AKA Int1"

name = "TinyInt"
# TINYINT INT1 -128 127

Expand Down
3 changes: 0 additions & 3 deletions duckdb_engine/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ def test_plain_register(conn: Connection) -> None:


@mark.remote_data
@mark.skipif(
"dev" in duckdb_version, reason="md extension not available for dev builds"
)
@mark.skipif(
duckdb_version != "0.9.2", reason="md extension not available for this version"
)
Expand Down

0 comments on commit 755b598

Please sign in to comment.