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

Method check

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

Source from the content-addressed store, hash-verified

203 check_fn: Callable[[object], None]
204
205 def check(self, dct: dict[str, Any]) -> None:
206 if self.key not in dct:
207 return
208
209 with cfgv.validate_context(f'At key: {self.key}'):
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:

Callers

nothing calls this directly

Calls 1

_translate_languageFunction · 0.85

Tested by

no test coverage detected