Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ repos:
]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.14.14
hooks:
- id: ruff
args: [--force-exclude]
- id: ruff-check
- id: ruff-format
args: [--force-exclude]
4 changes: 2 additions & 2 deletions src/smartem_backend/api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2366,7 +2366,7 @@ def complete(self):
return [LatentRepresentationResponse(foilhole_uuid=k, x=v.x, y=v.y, index=v.index) for k, v in rep.items() if v]


@app.get("/grids/{grid_uuid}/atlas_image")
@app.get("/grids/{grid_uuid}/atlas_image", responses={200: {"content": {"image/png": {}}}})
def get_grid_atlas_image(
grid_uuid: str,
x: int | None = None,
Expand All @@ -2393,7 +2393,7 @@ def get_grid_atlas_image(
return Response(im_bytes, media_type="image/png")


@app.get("/gridsquares/{gridsquare_uuid}/gridsquare_image")
@app.get("/gridsquares/{gridsquare_uuid}/gridsquare_image", responses={200: {"content": {"image/png": {}}}})
def get_gridsquare_image(
gridsquare_uuid: str,
db: SqlAlchemySession = DB_DEPENDENCY,
Expand Down