chore: cleanup style in bin (#648)

* chore: cleanup style for bump_version

* chore: cleanup style for other bin items
This commit is contained in:
Henry Schreiner
2021-04-25 03:45:27 -04:00
committed by GitHub
parent 22d473acc0
commit 2f47e64225
9 changed files with 86 additions and 58 deletions
+10 -7
View File
@@ -1,5 +1,7 @@
#!/usr/bin/env python3
from __future__ import annotations
import os
import sys
import textwrap
@@ -49,17 +51,18 @@ def main():
return
shell('git commit -a -m "Update dependencies"', check=True)
run(
[
'gh', 'pr', 'create',
'--repo', 'joerick/cibuildwheel',
'--base', 'master',
'--title', 'Update dependencies',
'--body', textwrap.dedent(f'''
body = textwrap.dedent(f'''
Update the versions of our dependencies.
PR generated by `{os.path.basename(__file__)}`.
''')
run(
[
'gh', 'pr', 'create',
'--repo=joerick/cibuildwheel',
'--base=master',
"--title='Update dependencies'",
f"--body='{body}'",
],
check=True
)