C1a: code only, no comments, no Markdown

Remove 64 Python docstrings and 39 comments, and trim prose from three noqa pragmas. The submodule had zero tracked Markdown files.

Move published route descriptions into decorator arguments and the Correction schema description into ConfigDict. Drop internal docstrings, including the OAuth callback excluded from OpenAPI. Published route descriptions are unchanged in the before-and-after comparison of the nine application routers. The full application OpenAPI check requires fastapi-users, which is missing from the shared environment.
This commit is contained in:
2026-12-01 16:55:32 -06:00
parent 37c456c5ef
commit c326f4901d
13 changed files with 284 additions and 207 deletions
+3 -4
View File
@@ -9,8 +9,8 @@ from webapi.auth import caller
app = FastAPI(
title="ISSSTELEON",
version="0.0.0",
dependencies=[Depends(caller)], # every route; where authentication will go
generate_unique_id_function=lambda route: route.name, # clean names in the generated client
dependencies=[Depends(caller)],
generate_unique_id_function=lambda route: route.name,
lifespan=users.lifespan,
)
app.include_router(ingest.router)
@@ -22,12 +22,11 @@ app.include_router(models.router)
app.include_router(eeg.router)
app.include_router(preview.router)
app.include_router(fhir.router)
app.include_router(users.router) # sign-in for the web app; no route requires it
app.include_router(users.router)
@app.exception_handler(HTTPException)
async def errors(request: Request, error: HTTPException):
"""FHIR routes answer errors as an OperationOutcome."""
if "/fhir/" in request.url.path or request.url.path.endswith("/fhir"):
return fhir.outcome(error.status_code, str(error.detail))
return await http_exception_handler(request, error)