Skip to content

Commit

Permalink
fixup! Add script to ease migration to black
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Apr 30, 2022
1 parent 2eadbe1 commit cfee07f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/migrate-black.py
Expand Up @@ -67,9 +67,7 @@ def blackify(base_branch, black_command):
)
git_diff.stdout.close()
git_apply.communicate()
if git_apply.returncode:
raise Exception("git apply failed")
git("commit", "-aqC", commit)
git("commit", "--allow-empty", "-aqC", commit)

for commit in commits:
git("branch", "-qD", "%s-black" % commit)
Expand Down

0 comments on commit cfee07f

Please sign in to comment.