MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / find_source_files

Method find_source_files

scripts/add-spdx-attribution.py:471–492  ·  view source on GitHub ↗

Find all source files that should be processed.

(self)

Source from the content-addressed store, hash-verified

469 return success
470
471 def find_source_files(self) -> List[Path]:
472 """Find all source files that should be processed."""
473 extensions = {
474 ".rs",
475 ".py",
476 ".go",
477 ".ts",
478 ".js",
479 ".c",
480 ".h",
481 ".cpp",
482 ".hpp",
483 ".sol",
484 }
485 source_files = []
486
487 for ext in extensions:
488 for file_path in self.repo_root.rglob(f"*{ext}"):
489 if file_path.is_file() and not self._is_excluded(file_path):
490 source_files.append(file_path)
491
492 return sorted(source_files)
493
494
495def main():

Callers 1

mainFunction · 0.95

Calls 2

_is_excludedMethod · 0.95
appendMethod · 0.80

Tested by

no test coverage detected