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",