chore(linter): make ruff happy
This commit is contained in:
@@ -32,8 +32,8 @@ class LocalStorageService(StorageService):
|
||||
self,
|
||||
file_path: str,
|
||||
content: bytes,
|
||||
content_type: str = "application/octet-stream",
|
||||
cache_control: str = "public, max-age=31536000",
|
||||
content_type: str = "application/octet-stream", # noqa: ARG002
|
||||
cache_control: str = "public, max-age=31536000", # noqa: ARG002
|
||||
) -> None:
|
||||
full_path = self._get_file_path(file_path)
|
||||
full_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
@@ -25,8 +25,8 @@ def upgrade() -> None:
|
||||
op.add_column("oauth_tokens", sa.Column("refresh_token_expires_at", sa.DateTime(), nullable=True))
|
||||
op.create_index(op.f("ix_oauth_tokens_expires_at"), "oauth_tokens", ["expires_at"], unique=False)
|
||||
expires_at = datetime.now() + timedelta(days=15)
|
||||
expires_at_str = expires_at.strftime('%Y-%m-%d %H:%M:%S')
|
||||
op.execute(f"UPDATE oauth_tokens SET refresh_token_expires_at = '{expires_at_str}'")
|
||||
expires_at_str = expires_at.strftime("%Y-%m-%d %H:%M:%S")
|
||||
op.execute(f"UPDATE oauth_tokens SET refresh_token_expires_at = '{expires_at_str}'") # noqa: S608
|
||||
op.create_index(
|
||||
op.f("ix_oauth_tokens_refresh_token_expires_at"), "oauth_tokens", ["refresh_token_expires_at"], unique=False
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user