MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / cli

Function cli

tools/check_code_block_format.py:114–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112
113
114def cli() -> argparse.Namespace:
115 parser = argparse.ArgumentParser(
116 description='Check if the code-block follows a blank line format.'
117 )
118 parser.add_argument(
119 'files', type=str, nargs='+', help='files to be checked'
120 )
121 args = parser.parse_args()
122 return args
123
124
125def expand_glob(files) -> list[Path]:

Callers 1

mainFunction · 0.70

Calls 1

parse_argsMethod · 0.45

Tested by

no test coverage detected