diff --git a/app/storage/local.py b/app/storage/local.py index af0e8ed..957c80c 100644 --- a/app/storage/local.py +++ b/app/storage/local.py @@ -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) diff --git a/migrations/versions/2025-10-02_7fe1319250c5_auth_add_refresh_token_expires_at.py b/migrations/versions/2025-10-02_7fe1319250c5_auth_add_refresh_token_expires_at.py index 836e01f..ceb26d4 100644 --- a/migrations/versions/2025-10-02_7fe1319250c5_auth_add_refresh_token_expires_at.py +++ b/migrations/versions/2025-10-02_7fe1319250c5_auth_add_refresh_token_expires_at.py @@ -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 )