Skip to content

Commit 1fb8085

Browse files
committed
fix: ruff errors
1 parent e610f5d commit 1fb8085

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/server/routers/ingest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Ingest endpoint for the API."""
22

3-
from fastapi import APIRouter
3+
from fastapi import APIRouter, Request
44
from fastapi.responses import JSONResponse
55

66
from server.form_types import IntForm, OptStrForm, StrForm
@@ -21,7 +21,7 @@
2121
)
2222
@limiter.limit("10/minute")
2323
async def api_ingest(
24-
*,
24+
request: Request, # noqa: ARG001 (unused) pylint: disable=unused-argument
2525
input_text: StrForm,
2626
max_file_size: IntForm,
2727
pattern_type: StrForm = "exclude",
@@ -36,6 +36,8 @@ async def api_ingest(
3636
3737
Parameters
3838
----------
39+
request : Request
40+
FastAPI request object
3941
input_text : StrForm
4042
Git repository URL or slug to ingest
4143
max_file_size : IntForm

0 commit comments

Comments
 (0)