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

Method from_config

pre_commit/commands/autoupdate.py:35–36  ·  view source on GitHub ↗
(cls, config: dict[str, Any])

Source from the content-addressed store, hash-verified

33
34 @classmethod
35 def from_config(cls, config: dict[str, Any]) -> RevInfo:
36 return cls(config['repo'], config['rev'])
37
38 def update(self, tags_only: bool, freeze: bool) -> RevInfo:
39 with tempfile.TemporaryDirectory() as tmp:

Callers 1

_update_oneFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected