Skip to content

Commit

Permalink
open all answer files
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmacartney committed Jan 31, 2025
1 parent 68c0132 commit 1cb60cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion runner/create_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,13 @@ def should_run_step(step_num):
f.write(content)
# Re-run codegen to generate the _generated files for the schema
subprocess.run(["bunx", "convex", "codegen"], cwd=answer_dir, check=False)
open_in_cursor([os.path.join(convex_dir, "index.ts"), os.path.join(convex_dir, "schema.ts")])
# find the non-generated .ts files to open
files_to_open = []
for filename in os.listdir(convex_dir):
if not filename.endswith(".ts"):
continue
files_to_open.append(os.path.join(convex_dir, filename))
open_in_cursor(files_to_open)

print("\nStep 3: Generating grader.test.ts")
grader_file = os.path.join(testdir, "grader.test.ts")
Expand Down

0 comments on commit 1cb60cf

Please sign in to comment.