MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / apply_default

Method apply_default

pre_commit/clientlib.py:212–216  ·  view source on GitHub ↗
(self, dct: dict[str, Any])

Source from the content-addressed store, hash-verified

210 self.check_fn(_translate_language(dct[self.key]))
211
212 def apply_default(self, dct: dict[str, Any]) -> None:
213 if self.key not in dct:
214 return
215
216 dct[self.key] = _translate_language(dct[self.key])
217
218 def remove_default(self, dct: dict[str, Any]) -> None:
219 raise NotImplementedError

Callers

nothing calls this directly

Calls 1

_translate_languageFunction · 0.85

Tested by

no test coverage detected