Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit 5f65009

Browse files
committed
Fix release script to work with pre-commit
1 parent 33a0036 commit 5f65009

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

script/release

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ if [ -z "$(command -v poetry)" ]; then
1616
exit 1
1717
fi
1818

19+
# Temporarily uninstall pre-commit hooks so that we can push to dev and master:
20+
pre-commit uninstall
21+
1922
case "$1" in
2023
patch)
2124
poetry version patch
@@ -32,9 +35,11 @@ case "$1" in
3235
;;
3336
esac
3437

35-
# Get the new version, commit, tag, and push:
38+
# Update the PyPI package version:
3639
new_version="$(poetry version | awk -F' ' '{ print $2 }')"
3740
git add pyproject.toml
41+
42+
# Commit, tag, and push:
3843
git commit -m "Bump version to $new_version"
3944
git tag "$new_version"
4045
git push && git push --tags
@@ -44,3 +49,6 @@ git checkout master
4449
git merge dev
4550
git push
4651
git checkout dev
52+
53+
# Re-initialize pre-commit:
54+
pre-commit install

0 commit comments

Comments
 (0)