Skip to content

Commit 20452d4

Browse files
pre-commit-ci[bot]Naragod
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 90d2f24 commit 20452d4

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

server/autotest_server/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,7 @@ def _run_test_specs(
271271
# The tester parses files_url into the spec fields; other
272272
# testers ignore this key.
273273
attribution = {"files_url": files_url, "categories": categories, "batch_id": batch_id}
274-
settings_json = json.dumps(
275-
{**settings, "test_data": test_data, "_attribution": attribution}
276-
)
274+
settings_json = json.dumps({**settings, "test_data": test_data, "_attribution": attribution})
277275
out, err = proc.communicate(input=settings_json, timeout=timeout)
278276
except subprocess.TimeoutExpired:
279277
if test_username != getpass.getuser():

server/autotest_server/testers/ai/ai_tester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def call_ai_feedback(self) -> dict:
133133
results[test_label] = {
134134
"title": test_label,
135135
"status": "error",
136-
"message": f"Unsupported model type: \"{model}\". Allowed models: {allowed}.",
136+
"message": f'Unsupported model type: "{model}". Allowed models: {allowed}.',
137137
}
138138
return results
139139

server/autotest_server/tests/testers/ai/test_ai_tester.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ def set_required_env():
2020
os.makedirs(os.environ["WORKER_LOG_DIR"], exist_ok=True)
2121

2222

23-
GATEWAY_FILE_URL = (
24-
"https://markus.example.edu/api/courses/12/assignments/34/groups/56/submission_files?collected=true"
25-
)
23+
GATEWAY_FILE_URL = "https://markus.example.edu/api/courses/12/assignments/34/groups/56/submission_files?collected=true"
2624

2725

2826
def _make_spec(output="overall_comment", config_overrides=None, attribution=None):

0 commit comments

Comments
 (0)