[CI] Use pre-commit to run linter (#321)

Co-authored-by: kevin314 <kevin.lin.cs1@gmail.com>
This commit is contained in:
William Lin
2025-04-08 11:38:47 -07:00
committed by GitHub
co-authored by kevin314
parent 60eeea50bb
commit 15553f7706
39 changed files with 525 additions and 756 deletions
+6 -5
View File
@@ -1,10 +1,11 @@
import os
import json
import time
import requests
import sys
import argparse
import json
import os
import subprocess
import sys
import time
import requests
def parse_arguments():
+3 -2
View File
@@ -1,9 +1,10 @@
import json
import os
import sys
import requests
import uuid
import requests
API_KEY = os.environ['RUNPOD_API_KEY']
RUN_ID = os.environ.get('GITHUB_RUN_ID', str(uuid.uuid4()))
PODS_API = "https://rest.runpod.io/v1/pods"
@@ -19,7 +20,7 @@ def get_job_ids():
try:
job_ids = json.loads(job_ids_str)
if not isinstance(job_ids, list):
print(f"Error: JOB_IDS is not a list.")
print("Error: JOB_IDS is not a list.")
sys.exit(1)
return job_ids
except json.JSONDecodeError as e: