style: apply black via pre-commit run -a

This commit is contained in:
Henry Schreiner
2021-05-03 13:12:36 -04:00
committed by Henry Schreiner
parent 9cbed6a9be
commit 178aaea6c7
53 changed files with 1479 additions and 714 deletions
+11 -8
View File
@@ -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.')