MCPcopy
hub / github.com/psf/black / main

Function main

scripts/release.py:233–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231
232
233def main() -> int:
234 args = parse_args()
235
236 # Need parent.parent cause script is in scripts/ directory
237 sf = SourceFiles(Path(__file__).parent.parent)
238
239 if args.add_changes_template:
240 return sf.add_template_to_changes()
241
242 LOG.info(f"Current version detected to be {sf.current_version}")
243 LOG.info(f"Next version will be {sf.next_version}")
244 return sf.update_repo_for_release()
245
246
247if __name__ == "__main__": # pragma: no cover

Callers 1

release.pyFile · 0.70

Calls 4

parse_argsFunction · 0.85
SourceFilesClass · 0.85

Tested by

no test coverage detected