From 12ecb7fa4fab901e8f3165dea86c380d15f068a3 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Tue, 14 Sep 2021 09:12:27 +0100 Subject: [PATCH] Update bump_version script for the changelog updates --- bin/bump_version.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/bin/bump_version.py b/bin/bump_version.py index 3f47630b..b252bd20 100755 --- a/bin/bump_version.py +++ b/bin/bump_version.py @@ -136,6 +136,25 @@ def bump_version() -> None: while input('Type "done" to continue: ').strip().lower() != "done": pass + # run pre-commit to update the README changelog + subprocess.run( + [ + "pre-commit", + "run", + "--files=docs/changelog.md", + ] + ) + + # run pre-commit to check that no errors occurred on the second run + subprocess.run( + [ + "pre-commit", + "run", + "--files=docs/changelog.md", + ], + check=True, + ) + subprocess.run( [ "git",