@@ -80,9 +80,9 @@ def __init__(
8080 self .retry_at_utc = retry_at_utc
8181 self .retry_source = source
8282 message = (
83- "GitHub secondary rate limit encountered for "
84- f"{ url } . Do not retry until after "
85- f"{ retry_at_utc .strftime ('%Y-%m-%d %H:%M:%S UTC' )} "
83+ "GitHub secondary rate limit encountered for " +
84+ f"{ url } . Do not retry until after " +
85+ f"{ retry_at_utc .strftime ('%Y-%m-%d %H:%M:%S UTC' )} " +
8686 f"({ retry_after_seconds } s, source: { source } )."
8787 )
8888 super ().__init__ (message , response = response )
@@ -101,8 +101,8 @@ def __init__(
101101 self .response = response
102102 self .attempts = attempts
103103 message = (
104- "Repository traffic endpoint remained unavailable after "
105- f"{ attempts } attempt(s): { url } . The repo may have been deleted, "
104+ "Repository traffic endpoint remained unavailable after " +
105+ f"{ attempts } attempt(s): { url } . The repo may have been deleted, " +
106106 "renamed, transferred, or may no longer be accessible."
107107 )
108108 super ().__init__ (message , response = response )
@@ -177,8 +177,8 @@ def _write_step_summary(
177177 ])
178178 for warning in _NETWORK_WARNINGS :
179179 lines .append (
180- "- Attempt "
181- f"{ warning ['attempt' ]} for `{ warning ['url' ]} ` failed with "
180+ "- Attempt " +
181+ f"{ warning ['attempt' ]} for `{ warning ['url' ]} ` failed with " +
182182 f"`{ warning ['error_type' ]} `: { warning ['message' ]} "
183183 )
184184
@@ -368,7 +368,7 @@ def fetch_json(
368368 if attempt < MAX_RETRIES :
369369 wait = _retry_delay_with_jitter (attempt )
370370 print (
371- f" Retry { attempt } /{ MAX_RETRIES } after network error: { exc } "
371+ f" Retry { attempt } /{ MAX_RETRIES } after network error: { exc } " +
372372 f"(sleeping { wait :.2f} s)"
373373 )
374374 time .sleep (wait )
@@ -433,8 +433,8 @@ def discover_repositories(headers: Headers) -> list[RepoMetadata]:
433433 discovered = []
434434 while True :
435435 url = (
436- f"{ REPO_DISCOVERY_URL } ?affiliation=owner,collaborator,organization_member"
437- f"&sort=updated&direction=desc&per_page={ REPO_DISCOVERY_PAGE_SIZE } "
436+ f"{ REPO_DISCOVERY_URL } ?affiliation=owner,collaborator,organization_member" +
437+ f"&sort=updated&direction=desc&per_page={ REPO_DISCOVERY_PAGE_SIZE } " +
438438 f"&page={ page } "
439439 )
440440 page_rows = fetch_json (url , headers )
@@ -574,8 +574,8 @@ def resolve_repositories(
574574 print ("Error: no eligible repositories remain in 'include_only'." )
575575 sys .exit (1 )
576576 print (
577- "Repository discovery: "
578- f"{ len (discovered )} accessible, { len (eligible )} eligible after filters, "
577+ "Repository discovery: " +
578+ f"{ len (discovered )} accessible, { len (eligible )} eligible after filters, " +
579579 f"tracking { len (resolved )} from include_only."
580580 )
581581 return resolved , manifest , {
@@ -626,9 +626,9 @@ def resolve_repositories(
626626 state ["auto_cutoff_created_at" ] = ""
627627
628628 print (
629- "Repository discovery: "
630- f"{ len (discovered )} accessible, { len (eligible )} eligible after filters, "
631- f"tracking { len (resolved )} "
629+ "Repository discovery: " +
630+ f"{ len (discovered )} accessible, { len (eligible )} eligible after filters, " +
631+ f"tracking { len (resolved )} " +
632632 f"({ explicit_count } explicit, { auto_count } automatic)."
633633 )
634634
@@ -785,7 +785,7 @@ def collect_repo_metrics(
785785
786786def _fallback_repo_detail_warning (repo : str , exc : Exception ) -> str :
787787 return (
788- f"{ repo } : repository detail request failed ({ exc } ); "
788+ f"{ repo } : repository detail request failed ({ exc } ); " +
789789 "traffic collection continued and repo metrics used discovery fallback."
790790 )
791791
@@ -847,7 +847,7 @@ def main() -> None:
847847 )
848848
849849 print (
850- f" OK: { len (vc_rows )} day(s), { len (ref_rows )} referrer(s), "
850+ f" OK: { len (vc_rows )} day(s), { len (ref_rows )} referrer(s), " +
851851 f"{ len (path_rows )} path(s), { len (metric_rows )} repo metric row(s)"
852852 )
853853 except SecondaryRateLimitError as exc :
0 commit comments