Skip to content

Commit 005a8b8

Browse files
committed
style: Fix whitespace and formatting issues in code
1 parent 7341721 commit 005a8b8

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/octoqueue/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import httpx
21
import logging
32
import os
43
import time
54
from typing import Any
5+
import httpx
66
from dotenv import load_dotenv
77
from fastapi import Depends
88
from fastapi import FastAPI
@@ -183,8 +183,8 @@ def create_job(
183183
processing_status = "unscheduled"
184184
except Exception as e:
185185
logger.error(f"Failed to ping topoprint endpoint: {e}")
186-
187-
return {"job_id": job_id, "status": "pending" , "processing_status" : processing_status }
186+
187+
return {"job_id": job_id, "status": "pending", "processing_status": processing_status}
188188
except ValidationError as e:
189189
logger.warning(f"Job data validation failed: {e}")
190190
raise HTTPException(

src/octoqueue/queue.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,13 @@ def fail(self, job_id: int, comment: str = None) -> None:
156156

157157
def create_comment(self, job_id: int, comment: str = None) -> None:
158158
if comment is None:
159-
return None
159+
return
160160
try:
161161
issue = self.repo.get_issue(job_id)
162162
issue.create_comment(comment)
163163
except GithubException as e:
164164
self.logger.error(f"Failed to complete job {job_id}: {e}")
165165
raise
166-
167166

168167
def complete(self, job_id: int, comment: str = None) -> None:
169168
"""Mark job as complete"""

0 commit comments

Comments
 (0)