Get all .cpp source files from src/ directory.
()
| 47 | |
| 48 | |
| 49 | def get_source_files() -> list[Path]: |
| 50 | """Get all .cpp source files from src/ directory.""" |
| 51 | src_dir = PROJECT_ROOT / "src" |
| 52 | sources: list[Path] = [] |
| 53 | for cpp_file in src_dir.rglob("*.cpp"): |
| 54 | # Exclude entry_point.cpp (compiled separately for sketches) |
| 55 | if cpp_file.name == "entry_point.cpp": |
| 56 | continue |
| 57 | # Exclude test files |
| 58 | if "test" in cpp_file.parts: |
| 59 | continue |
| 60 | sources.append(cpp_file.resolve()) |
| 61 | |
| 62 | return sorted(sources) # Sort for deterministic ordering |
| 63 | |
| 64 | |
| 65 | def chunk_sources(sources: list[Path], num_chunks: int) -> list[list[Path]]: |
no test coverage detected