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

Method check

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

Source from the content-addressed store, hash-verified

400
401class NotAllowed(cfgv.OptionalNoDefault):
402 def check(self, dct: dict[str, Any]) -> None:
403 if self.key in dct:
404 raise cfgv.ValidationError(f'{self.key!r} cannot be overridden')
405
406
407_COMMON_HOOK_WARNINGS = (

Callers 5

checkMethod · 0.45
checkMethod · 0.45
checkMethod · 0.45
checkMethod · 0.45

Calls

no outgoing calls