MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / collect_solution_file_paths

Function collect_solution_file_paths

scripts/validate_solutions.py:82–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80
81
82def collect_solution_file_paths() -> list[pathlib.Path]:
83 # Return only if there are any, otherwise default to all solutions
84 if (
85 os.environ.get("CI")
86 and os.environ.get("GITHUB_EVENT_NAME") == "pull_request"
87 and (filepaths := added_solution_file_path())
88 ):
89 return filepaths
90 return all_solution_file_paths()
91
92
93@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

added_solution_file_pathFunction · 0.85
all_solution_file_pathsFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected