We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec1af0f commit 9be644aCopy full SHA for 9be644a
scripts/validate_solutions.py
@@ -59,7 +59,11 @@ def added_solution_file_path() -> List[pathlib.Path]:
59
pull = repo.get_pull(pull_number)
60
for file in pull.get_files():
61
file_path = pathlib.Path.cwd().joinpath(file.filename)
62
- if file_path.suffix != ".py" or file_path.name.startswith(("_", "test")):
+ if (
63
+ file_path.suffix != ".py"
64
+ or file_path.name.startswith(("_", "test"))
65
+ or not file_path.name.startswith("sol")
66
+ ):
67
continue
68
solution_file_paths.append(file_path)
69
return solution_file_paths
0 commit comments