fix: resolve CI lint and docs build failures
Apply ruff formatting to 3 files and add missing package-lock.json for docs/website. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4403c9ebde
commit
79f3e41471
4 changed files with 18464 additions and 6 deletions
|
|
@ -56,6 +56,7 @@ def _drop_finished_task(task: asyncio.Task[Any]) -> None:
|
||||||
except Exception:
|
except Exception:
|
||||||
structured_log(logger, "exception", "runs.background_task_failed")
|
structured_log(logger, "exception", "runs.background_task_failed")
|
||||||
|
|
||||||
|
|
||||||
router = APIRouter(prefix="/runs", tags=["api-runs"])
|
router = APIRouter(prefix="/runs", tags=["api-runs"])
|
||||||
ACTIVE_RUN_STATUSES = {RunStatus.RUNNING, RunStatus.RESOLVING}
|
ACTIVE_RUN_STATUSES = {RunStatus.RUNNING, RunStatus.RESOLVING}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -99,9 +99,7 @@ async def _run_serialized_fetch(
|
||||||
"arxiv.request_completed",
|
"arxiv.request_completed",
|
||||||
status_code=int(response.status_code),
|
status_code=int(response.status_code),
|
||||||
wait_seconds=wait_seconds,
|
wait_seconds=wait_seconds,
|
||||||
cooldown_remaining_seconds=_cooldown_remaining_seconds(
|
cooldown_remaining_seconds=_cooldown_remaining_seconds(cooldown_until_value, now_utc=datetime.now(UTC)),
|
||||||
cooldown_until_value, now_utc=datetime.now(UTC)
|
|
||||||
),
|
|
||||||
source_path=source_path,
|
source_path=source_path,
|
||||||
)
|
)
|
||||||
return response, hit_rate_limit
|
return response, hit_rate_limit
|
||||||
|
|
|
||||||
18461
docs/website/package-lock.json
generated
Normal file
18461
docs/website/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -30,9 +30,7 @@ class _PassthroughSource:
|
||||||
error=None,
|
error=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
async def fetch_profile_page_html(
|
async def fetch_profile_page_html(self, scholar_id: str, *, cstart: int, pagesize: int) -> FetchResult:
|
||||||
self, scholar_id: str, *, cstart: int, pagesize: int
|
|
||||||
) -> FetchResult:
|
|
||||||
return await self.fetch_profile_html(scholar_id)
|
return await self.fetch_profile_html(scholar_id)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue