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

Method _load_exclude_patterns

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

Load exclusion patterns from .spdx-exclude file.

(self)

Source from the content-addressed store, hash-verified

37 self.company_domains = self._build_company_domain_map()
38
39 def _load_exclude_patterns(self) -> List[str]:
40 """Load exclusion patterns from .spdx-exclude file."""
41 exclude_file = self.repo_root / ".spdx-exclude"
42 patterns = []
43
44 if exclude_file.exists():
45 with open(exclude_file, "r") as f:
46 for line in f:
47 line = line.strip()
48 if line and not line.startswith("#"):
49 patterns.append(line)
50
51 return patterns
52
53 def _parse_mailmap(self) -> Dict[str, Tuple[str, str]]:
54 """Parse .mailmap file to get canonical name/email mappings."""

Callers 1

__init__Method · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected