Skip to content

Commit 9be644a

Browse files
committed
Fix: do not fetch validate solution script
1 parent ec1af0f commit 9be644a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/validate_solutions.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ def added_solution_file_path() -> List[pathlib.Path]:
5959
pull = repo.get_pull(pull_number)
6060
for file in pull.get_files():
6161
file_path = pathlib.Path.cwd().joinpath(file.filename)
62-
if file_path.suffix != ".py" or file_path.name.startswith(("_", "test")):
62+
if (
63+
file_path.suffix != ".py"
64+
or file_path.name.startswith(("_", "test"))
65+
or not file_path.name.startswith("sol")
66+
):
6367
continue
6468
solution_file_paths.append(file_path)
6569
return solution_file_paths

0 commit comments

Comments
 (0)