Skip to content

Commit

Permalink
Make Pre-Commit happy
Browse files Browse the repository at this point in the history
  • Loading branch information
btschwertfeger committed Jan 5, 2025
1 parent 7ea28f4 commit 3ef5d85
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/kraken_infinity_grid/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,12 @@ def __init__(self: Self, userref: int, db: DBConnect) -> None:
self.__db.metadata,
Column("id", Integer, primary_key=True),
Column("userref", Integer, nullable=False),
Column("version", String, nullable=False, default=version("kraken-infinity-grid")),
Column(
"version",
String,
nullable=False,
default=version("kraken-infinity-grid"),
),
Column("vol_of_unfilled_remaining", Float, nullable=False, default=0),
Column(
"vol_of_unfilled_remaining_max_price",
Expand Down
5 changes: 4 additions & 1 deletion tests/test_gridbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ def db_config() -> dict:


@pytest_asyncio.fixture
async def instance(config: dict, db_config: dict) -> KrakenInfinityGridBot: # noqa: RUF029
async def instance( # noqa: RUF029
config: dict,
db_config: dict,
) -> KrakenInfinityGridBot:
"""Fixture to create a KrakenInfinityGridBot instance for testing."""
instance = KrakenInfinityGridBot(
key="key",
Expand Down

0 comments on commit 3ef5d85

Please sign in to comment.