Collects all the solution file path in the Project Euler directory
()
| 36 | |
| 37 | |
| 38 | def all_solution_file_paths() -> list[pathlib.Path]: |
| 39 | """Collects all the solution file path in the Project Euler directory""" |
| 40 | solution_file_paths = [] |
| 41 | for problem_dir_path in PROJECT_EULER_DIR_PATH.iterdir(): |
| 42 | if problem_dir_path.is_file() or problem_dir_path.name.startswith("_"): |
| 43 | continue |
| 44 | for file_path in problem_dir_path.iterdir(): |
| 45 | if file_path.suffix != ".py" or file_path.name.startswith(("_", "test")): |
| 46 | continue |
| 47 | solution_file_paths.append(file_path) |
| 48 | return solution_file_paths |
| 49 | |
| 50 | |
| 51 | def get_files_url() -> str: |
no test coverage detected