From 0ee89136ff5ec032a04a5ddbb6a9798ef57aec2a Mon Sep 17 00:00:00 2001 From: Justin Visser Date: Sun, 1 Mar 2026 23:04:02 +0100 Subject: [PATCH 1/2] fix: handle optional cookie field for mypy type check Co-Authored-By: Claude Opus 4.6 --- app/api/routers/admin_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/routers/admin_settings.py b/app/api/routers/admin_settings.py index c909874..bbdaad3 100644 --- a/app/api/routers/admin_settings.py +++ b/app/api/routers/admin_settings.py @@ -55,7 +55,7 @@ def _apply_scholar_http_settings(payload: AdminScholarHttpSettingsUpdateRequest) max_length=_MAX_ACCEPT_LANGUAGE_LENGTH, ) cookie = _normalize_header_value( - payload.cookie, + payload.cookie or "", field_name="cookie", max_length=_MAX_COOKIE_LENGTH, ) From 6fe4814442c8684c0df799966955486f35a9f947 Mon Sep 17 00:00:00 2001 From: Justin Visser Date: Sun, 1 Mar 2026 23:04:23 +0100 Subject: [PATCH 2/2] " " --- .claude/settings.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.claude/settings.json b/.claude/settings.json index c9beb7e..a332c01 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -17,7 +17,9 @@ "Bash(pip install ruff)", "Bash(uvx ruff format app/api/routers/runs.py app/services/arxiv/rate_limit.py tests/integration/test_run_lifecycle_consistency.py)", "Bash(git add app/api/routers/runs.py app/services/arxiv/rate_limit.py tests/integration/test_run_lifecycle_consistency.py docs/website/package-lock.json)", - "Bash(git push)" + "Bash(git push)", + "Bash(uvx ruff format --check app/api/routers/runs.py app/services/arxiv/rate_limit.py tests/integration/test_run_lifecycle_consistency.py)", + "Bash(test -f docs/website/package-lock.json)" ], "additionalDirectories": [ "/home/jv/src/personal/playground/scholar_scraper/scholar-scraper/frontend/src"