@@ -58,17 +58,14 @@ def get_gcloud_token():
5858 if not gcloud :
5959 return None
6060
61- result = subprocess .run (
62- [gcloud , "auth" , "print-access-token" ],
63- capture_output = True , text = True
64- )
61+ result = subprocess .run ([gcloud , "auth" , "print-access-token" ], capture_output = True , text = True )
6562 token = result .stdout .strip ()
6663 return token if token else None
6764
6865
6966def get_sheets_service ():
70- from googleapiclient .discovery import build
7167 from google .oauth2 .credentials import Credentials
68+ from googleapiclient .discovery import build
7269
7370 token = get_gcloud_token ()
7471 if not token :
@@ -220,21 +217,19 @@ def main():
220217 error_exit ("no_schedule_tab_found" , {"tabs" : tabs })
221218
222219 log (f"Reading tab: { tab } " )
223- result = (
224- service .spreadsheets ()
225- .values ()
226- .get (spreadsheetId = SPREADSHEET_ID , range = tab )
227- .execute ()
228- )
220+ result = service .spreadsheets ().values ().get (spreadsheetId = SPREADSHEET_ID , range = tab ).execute ()
229221 rows = result .get ("values" , [])
230222
231223 milestones = find_milestones (rows , version )
232224
233225 if not milestones .get ("code_freeze" ) and not milestones .get ("ga_date" ):
234226 error_exit (
235227 "version_not_found" ,
236- {"version" : version , "tab" : tab ,
237- "hint" : "Check that the version string matches the sheet exactly" },
228+ {
229+ "version" : version ,
230+ "tab" : tab ,
231+ "hint" : "Check that the version string matches the sheet exactly" ,
232+ },
238233 )
239234
240235 output = {
0 commit comments