mirror of
https://github.com/vinta/awesome-python.git
synced 2026-08-03 22:40:46 +00:00
style(website): apply ruff format
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
432a1f4b71
commit
3d99f7336d
4 changed files with 28 additions and 42 deletions
|
|
@ -11,7 +11,6 @@ from itertools import batched
|
|||
from pathlib import Path
|
||||
|
||||
import httpx
|
||||
|
||||
from build import extract_github_repo, load_stars
|
||||
|
||||
CACHE_MAX_AGE_HOURS = 12
|
||||
|
|
@ -53,10 +52,7 @@ def build_graphql_query(repos: Sequence[str]) -> str:
|
|||
owner, name = repo.split("/", 1)
|
||||
if not GITHUB_OWNER_RE.match(owner) or not GITHUB_NAME_RE.match(name):
|
||||
continue
|
||||
parts.append(
|
||||
f'repo_{i}: repository(owner: "{owner}", name: "{name}") '
|
||||
f"{{ stargazerCount owner {{ login }} defaultBranchRef {{ target {{ ... on Commit {{ committedDate }} }} }} }}"
|
||||
)
|
||||
parts.append(f'repo_{i}: repository(owner: "{owner}", name: "{name}") {{ stargazerCount owner {{ login }} defaultBranchRef {{ target {{ ... on Commit {{ committedDate }} }} }} }}')
|
||||
if not parts:
|
||||
return ""
|
||||
return "query { " + " ".join(parts) + " }"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue