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

Function main

pre_commit/commands/hazmat.py:86–91  ·  view source on GitHub ↗
(argv: Sequence[str] | None = None)

Source from the content-addressed store, hash-verified

84
85
86def main(argv: Sequence[str] | None = None) -> int:
87 parser = argparse.ArgumentParser()
88 add_parsers(parser)
89 args = parser.parse_args(argv)
90
91 return impl(args)
92
93
94if __name__ == '__main__':

Callers 6

test_cdFunction · 0.90
test_ignore_exit_codeFunction · 0.90
test_n1Function · 0.90
test_n1_some_error_codeFunction · 0.90
hazmat.pyFile · 0.70

Calls 2

add_parsersFunction · 0.85
implFunction · 0.85

Tested by 5

test_cdFunction · 0.72
test_ignore_exit_codeFunction · 0.72
test_n1Function · 0.72
test_n1_some_error_codeFunction · 0.72