refactor: Update subprocess.run with text, shell, and encoding parameters

This commit is contained in:
Paul Gauthier 2024-11-21 12:09:28 -08:00 committed by Paul Gauthier (aider)
parent 1a7a2f3088
commit 1c79d517fc

View file

@ -124,7 +124,14 @@ def main():
for cmd in git_commands:
print(f"Running: {' '.join(cmd)}")
if not dry_run:
subprocess.run(cmd, check=True)
subprocess.run(
cmd,
text=True,
shell=True,
encoding="utf-8",
errors="replace",
check=True,
)
new_dev_version = f"{incremented_version}.dev"
updated_dev_content = re.sub(