Skip to content

Commit

Permalink
Add bumpversion.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrosss committed Apr 26, 2023
1 parent 8f42270 commit c45e1ad
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions bumpversion.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail

VERSION="${1}"

# skip all hooks when bumping version
SKIP="trailing-whitespace,end-of-file-fixer,check-case-conflict,check-docstring-first,check-json,check-toml,check-vcs-permalinks,check-yaml,debug-statements,name-tests-test,requirements-txt-fixer,black,flake8,reorder-python-imports,pyupgrade,add-trailing-comma,setup-cfg-fmt,python-check-blanket-noqa,python-use-type-annotations,fmt,cargo-check,clippy"
SKIP="${SKIP}" bump2version --new-version="${VERSION}" fakepart

echo ""
echo ""
echo "Please run the following commands to finish bumping the version:"
echo ""
echo " git add -u"
echo " git commit --amend --no-edit"
echo " git tag -f ${VERSION}"
echo ""
echo ""

0 comments on commit c45e1ad

Please sign in to comment.