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

Function read_config

testing/fixtures.py:116–120  ·  view source on GitHub ↗
(directory, config_file=C.CONFIG_FILE)

Source from the content-addressed store, hash-verified

114
115
116def read_config(directory, config_file=C.CONFIG_FILE):
117 config_path = os.path.join(directory, config_file)
118 with open(config_path) as f:
119 config = yaml_load(f.read())
120 return config
121
122
123def write_config(directory, config, config_file=C.CONFIG_FILE):

Calls

no outgoing calls