style: apply black via pre-commit run -a
This commit is contained in:
committed by
Henry Schreiner
parent
9cbed6a9be
commit
178aaea6c7
@@ -31,10 +31,9 @@ def main():
|
||||
print('Your git repo has uncommitted changes. Commit or stash before continuing.')
|
||||
sys.exit(1)
|
||||
|
||||
previous_branch = shell('git rev-parse --abbrev-ref HEAD',
|
||||
check=True,
|
||||
capture_output=True,
|
||||
encoding='utf8').stdout.strip()
|
||||
previous_branch = shell(
|
||||
'git rev-parse --abbrev-ref HEAD', check=True, capture_output=True, encoding='utf8'
|
||||
).stdout.strip()
|
||||
|
||||
shell('git fetch origin', check=True)
|
||||
|
||||
@@ -51,20 +50,24 @@ def main():
|
||||
return
|
||||
|
||||
shell('git commit -a -m "Update dependencies"', check=True)
|
||||
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',
|
||||
'gh',
|
||||
'pr',
|
||||
'create',
|
||||
'--repo=joerick/cibuildwheel',
|
||||
'--base=master',
|
||||
"--title=Update dependencies",
|
||||
f"--body='{body}'",
|
||||
],
|
||||
check=True
|
||||
check=True,
|
||||
)
|
||||
|
||||
print('Done.')
|
||||
|
||||
Reference in New Issue
Block a user