Skip to content

Commit c8f0ec1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 323555d commit c8f0ec1

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

jupyter_scheduler/orm.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@
33
from uuid import uuid4
44

55
import sqlalchemy.types as types
6-
from sqlalchemy import Boolean, Column, Integer, BigInteger, String, create_engine, inspect
6+
from sqlalchemy import (
7+
BigInteger,
8+
Boolean,
9+
Column,
10+
Integer,
11+
String,
12+
create_engine,
13+
inspect,
14+
)
715
from sqlalchemy.orm import declarative_base, declarative_mixin, registry, sessionmaker
816
from sqlalchemy.sql import text
917

@@ -83,7 +91,11 @@ class CommonColumns:
8391
max_retries = Column(Integer, default=0)
8492
min_retry_interval_millis = Column(Integer, default=0)
8593
output_filename_template = Column(String(256))
86-
update_time = Column(BigInteger().with_variant(Integer, "sqlite"), default=get_utc_timestamp, onupdate=get_utc_timestamp)
94+
update_time = Column(
95+
BigInteger().with_variant(Integer, "sqlite"),
96+
default=get_utc_timestamp,
97+
onupdate=get_utc_timestamp,
98+
)
8799
create_time = Column(BigInteger().with_variant(Integer, "sqlite"), default=get_utc_timestamp)
88100
# All new columns added to this table must be nullable to ensure compatibility during database migrations.
89101
# Any default values specified for new columns will be ignored during the migration process.

0 commit comments

Comments
 (0)