MCPcopy
hub / github.com/cjolowicz/cookiecutter-hypermodern-python / git

Function git

tools/prepare-github-release.py:14–23  ·  view source on GitHub ↗
(*args: str, **kwargs: Any)

Source from the content-addressed store, hash-verified

12
13
14def git(*args: str, **kwargs: Any) -> str:
15 try:
16 process = subprocess.run(
17 ["git", *args], check=True, capture_output=True, text=True
18 )
19 return process.stdout
20 except subprocess.CalledProcessError as error:
21 print(error.stdout, end="")
22 print(error.stderr, end="", file=sys.stderr)
23 raise
24
25
26def replace_text(path: Path, old: str, new: str):

Callers 1

prepare_releaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected